Spring @RestControllerAdvice doesn't handle status code 400 exceptions
I have the following class for handling rest controller exceptions
@RestControllerAdvice
class RestResponseEntityExceptionHandler : ResponseEntityExceptionHandler() {
@ExceptionHandler(
value = [
(NotFoundException::class),
(AccountNotFoundException::class),
(ExecutionLogNotFoundException::class),
(SubscriptionNotFoundException::class)
]
)
protected fun notFoundException(
ex: Throwable?,
request:...