ControllerExceptionHandler
Functions
Link copied to clipboard
@ExceptionHandler(value = [MethodArgumentTypeMismatchException::class, TypeMismatchException::class, WebExchangeBindException::class, BindException::class, MethodArgumentNotValidException::class, DecodingException::class, ConstraintViolationException::class, ServerWebInputException::class, HttpMessageNotReadableException::class] )
fun handleBadRequest(ex: IllegalArgumentException, request: HttpServletRequest): ApiResponse<ApiResponse.FailureBody>
Link copied to clipboard
fun handleForbidden(ex: AccessDeniedException, request: HttpServletRequest): ApiResponse<ApiResponse.FailureBody>
Link copied to clipboard
fun handleIllegalState(ex: Exception, request: HttpServletRequest): ApiResponse<ApiResponse.FailureBody>
Link copied to clipboard
fun handleInternalServerError(ex: Exception, request: HttpServletRequest): ApiResponse<ApiResponse.FailureBody>