Class RestExceptionHandler
- java.lang.Object
-
- org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
- ir.a2mo.sdk.sample.server.rest.exceptionhandler.RestExceptionHandler
-
@ControllerAdvice public class RestExceptionHandler extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler- Since:
- ۱۴/۱۲/۲۰۲۰
- Author:
- Ali Alimohammadi
-
-
Constructor Summary
Constructors Constructor Description RestExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<ir.a2mo.sdk.autoconfigure.impl.feign.ErrorObject>exception(CustomServerException customServerException)org.springframework.http.ResponseEntity<ir.a2mo.sdk.autoconfigure.impl.feign.ErrorObject>exception(java.lang.Throwable throwable)-
Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch
-
-
-
-
Method Detail
-
exception
@ExceptionHandler(ir.a2mo.sdk.sample.server.api.exception.CustomServerException.class) @ResponseBody public org.springframework.http.ResponseEntity<ir.a2mo.sdk.autoconfigure.impl.feign.ErrorObject> exception(CustomServerException customServerException)
-
exception
@ExceptionHandler(java.lang.Throwable.class) @ResponseBody public org.springframework.http.ResponseEntity<ir.a2mo.sdk.autoconfigure.impl.feign.ErrorObject> exception(java.lang.Throwable throwable)
-
-