htwdd.chessgame.server.exceptions / ExceptionHandler
ExceptionHandler
@RestControllerAdvice class ExceptionHandler
Handler object to manage exceptions
Constructors
<init> | ExceptionHandler() Handler object to manage exceptions |
Functions
handleBadRequestException | fun handleBadRequestException(ex: Exception , request: WebRequest): ErrorResponseObject Handles BadRequestException |
handleIllegalArgumentException | fun handleIllegalArgumentException(ex: Exception , request: WebRequest): ErrorResponseObject Handles IllegalArgumentException |
handleRuntimeException | fun handleRuntimeException(ex: Exception , request: WebRequest): ErrorResponseObject Handles RuntimeException |
handleUnknownException | fun handleUnknownException(ex: Exception , request: WebRequest): ErrorResponseObject Handles all unforeseen exception |