Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override fun handleHttpMessageNotReadable(e: HttpMessageNotReadableException,
- headers: HttpHeaders,
- status: HttpStatus,
- webRequest: WebRequest):ResponseEntity<Any>{
- val rsp = ErrResponse(
- Data(
- HttpStatus.BAD_REQUEST.name,
- e.message!!
- ),**REQUEST-BODY-NEEDED**)
- return super.handleExceptionInternal(e, rsp,headers, HttpStatus.BAD_REQUEST, webRequest)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement