handleUnexpectedError

@ExceptionHandler(value = [Exception::class])
open fun handleUnexpectedError(ex: Exception): ResponseEntity<CRUDError>(source)

Converts any exception into a ResponseEntity with 500 Internal Server Error code and a generic message

Return

ResponseEntity built from given exception

Parameters