Package overit.geocallapp.utilities.rs
Class RestFsmResponseEntityExceptionHandler
java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
overit.geocall.rs.utils.RestResponseEntityExceptionHandler
overit.geocallapp.utilities.rs.RestFsmResponseEntityExceptionHandler
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.MessageSourceAware
@ControllerAdvice
@Order(1)
public class RestFsmResponseEntityExceptionHandler
extends overit.geocall.rs.utils.RestResponseEntityExceptionHandler
Specialized exception handler for REST services that extends
Provides custom handling for
This handler takes precedence over other exception handlers due to its
RestResponseEntityExceptionHandler.Provides custom handling for
DAValidateException with enhanced message translation and formatting capabilities.This handler takes precedence over other exception handlers due to its
Order annotation with value 1.- Since:
- 1.0
-
Field Summary
Fields inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
logger, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object> handleDAValidateException(DAValidateException ex, org.springframework.web.context.request.WebRequest request) HandlesDAValidateExceptioninstances with custom message translation and formatting.Methods inherited from class overit.geocall.rs.utils.RestResponseEntityExceptionHandler
createProblemDetail, handleConstraintViolationException, handleDAException, handleEDMConstraintException, handleEDMException, handleGenericException, handleHandlerMethodValidationException, handleLicensingException, handleLicensingException, handleMethodArgumentNotValid, handleMicroExceptionExceptionMethods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
createResponseEntity, getMessageSource, handleAsyncRequestNotUsableException, handleAsyncRequestTimeoutException, handleConversionNotSupported, handleErrorResponseException, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMaxUploadSizeExceededException, handleMethodValidationException, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleNoResourceFoundException, handleServletRequestBindingException, handleTypeMismatch, setMessageSource
-
Constructor Details
-
RestFsmResponseEntityExceptionHandler
public RestFsmResponseEntityExceptionHandler()
-
-
Method Details
-
handleDAValidateException
public org.springframework.http.ResponseEntity<Object> handleDAValidateException(DAValidateException ex, org.springframework.web.context.request.WebRequest request) HandlesDAValidateExceptioninstances with custom message translation and formatting. If the exception has a code, delegates to the parent handler; otherwise, provides custom handling with message translation. Uses the current user'sTeacherfor message translation and supports parameterized messages.- Overrides:
handleDAValidateExceptionin classoverit.geocall.rs.utils.RestResponseEntityExceptionHandler- Parameters:
ex- theDAValidateExceptionto handlerequest- the currentWebRequest- Returns:
- a
ResponseEntitycontaining the error response with translated message
-