GlobalExceptionHandler

@RestControllerAdvice
class GlobalExceptionHandler

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
@ExceptionHandler(value = [AgentClientException::class])
fun handleAgentClientException(exchange: ServerWebExchange, ex: Exception): ResponseEntity<ErrorMessage>
Link copied to clipboard
@ExceptionHandler(value = [Exception::class])
fun handleAllExceptions(exchange: ServerWebExchange, ex: Exception): ResponseEntity<ErrorMessage>
Link copied to clipboard
@ExceptionHandler(value = [HttpMessageNotReadableException::class])
fun handleHttpMessageNotReadableException(exchange: ServerWebExchange, ex: HttpMessageNotReadableException): ResponseEntity<ErrorMessage>
@ExceptionHandler(value = [MethodArgumentNotValidException::class])
fun handleHttpMessageNotReadableException(exchange: ServerWebExchange, ex: MethodArgumentNotValidException): ResponseEntity<ErrorMessage>
Link copied to clipboard
@ExceptionHandler(value = [NoRoutingInfoFoundException::class, AgentRoutingSpecResolverException::class])
fun handleIllegalArgumentException(exchange: ServerWebExchange, ex: Exception): ResponseEntity<ErrorMessage>
@ExceptionHandler(value = [IllegalArgumentException::class])
fun handleIllegalArgumentException(exchange: ServerWebExchange, ex: IllegalArgumentException): ResponseEntity<ErrorMessage>
Link copied to clipboard
@ExceptionHandler(value = [ServerWebInputException::class])
fun handleInvalidInputException(exchange: ServerWebExchange, ex: ServerWebInputException): ResponseEntity<ErrorMessage>