Slide 24
Slide 24 text
ControllerʢSpringBootʣ
class ExceptionHandler: ResponseEntityExceptionHandler() {
@ExceptionHandler(Exception::class)
fun handleException(ex: Exception, headers: HttpHeaders, request: WebRequest):
ResponseEntity {
return super.handleExceptionInternal(ex, "handleException", headers
, HttpStatus.INTERNAL_SERVER_ERROR, request)
}
}