point click postback api 추가

This commit is contained in:
2023-09-19 12:15:57 +09:00
parent 615d4baef8
commit d5cc28e50b
12 changed files with 176 additions and 3 deletions

View File

@@ -2,10 +2,12 @@ package kr.co.vividnext.sodalive.common
import org.slf4j.LoggerFactory
import org.springframework.dao.DataIntegrityViolationException
import org.springframework.http.HttpStatus
import org.springframework.security.access.AccessDeniedException
import org.springframework.security.authentication.BadCredentialsException
import org.springframework.security.authentication.InternalAuthenticationServiceException
import org.springframework.web.bind.annotation.ExceptionHandler
import org.springframework.web.bind.annotation.ResponseStatus
import org.springframework.web.bind.annotation.RestControllerAdvice
import org.springframework.web.multipart.MaxUploadSizeExceededException
@@ -52,6 +54,13 @@ class SodaExceptionHandler {
ApiResponse.error("이미 등록되어 있습니다.")
}
@ResponseStatus(value = HttpStatus.NOT_FOUND)
@ExceptionHandler(AdsChargeException::class)
fun handleAdsChargeException(e: AdsChargeException) = run {
logger.error("API error - AdsChargeException ::: ", e)
ApiResponse.error("잘못된 요청입니다.")
}
@ExceptionHandler(Exception::class)
fun handleException(e: Exception) = run {
logger.error("API error", e)