Class HvlBpmnRestExceptionHandler
java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
tr.com.havelsan.javarch.service.handler.HvlRestExceptionHandler
tr.com.havelsan.javarch.bpmn.admin.starter.exception.HvlBpmnRestExceptionHandler
@ControllerAdvice
public class HvlBpmnRestExceptionHandler
extends tr.com.havelsan.javarch.service.handler.HvlRestExceptionHandler
An exception handler class for bpmn admin operations.
-
Field Summary
Fields inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
logger, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger
-
Constructor Summary
ConstructorDescriptionHvlBpmnRestExceptionHandler
(tr.com.havelsan.javarch.service.configuration.properties.HvlServiceProperties serviceProperties) Instantiates a new HvlBpmnRestExceptionHandler. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.http.ResponseEntity<Object>
handleConstraintViolation
(javax.validation.ConstraintViolationException ex) Handle constraint violation exception.protected org.springframework.http.ResponseEntity<Object>
handleDataIntegrityViolation
(org.springframework.dao.DataIntegrityViolationException ex) Handle data integrity violation exception.protected org.springframework.http.ResponseEntity<Object>
handleOptimisticLock
(org.springframework.orm.ObjectOptimisticLockingFailureException ex) Handle optimistic lock exception.protected org.springframework.http.ResponseEntity<Object>
handleTransactionalConstraintViolation
(org.springframework.transaction.TransactionSystemException ex) Handle transactional constraint violation exception.Methods inherited from class tr.com.havelsan.javarch.service.handler.HvlRestExceptionHandler
handle, handleAsyncRequestTimeoutException, handleBindException, handleChecked, handleConversionNotSupported, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch, handleUnchecked
Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
handleException
-
Constructor Details
-
HvlBpmnRestExceptionHandler
public HvlBpmnRestExceptionHandler(tr.com.havelsan.javarch.service.configuration.properties.HvlServiceProperties serviceProperties) Instantiates a new HvlBpmnRestExceptionHandler.- Parameters:
serviceProperties
- the service properties
-
-
Method Details
-
handleOptimisticLock
@ExceptionHandler(org.springframework.orm.ObjectOptimisticLockingFailureException.class) protected org.springframework.http.ResponseEntity<Object> handleOptimisticLock(org.springframework.orm.ObjectOptimisticLockingFailureException ex) Handle optimistic lock exception.- Parameters:
ex
- the ex- Returns:
- the response entity
-
handleTransactionalConstraintViolation
@ExceptionHandler(org.springframework.transaction.TransactionSystemException.class) protected org.springframework.http.ResponseEntity<Object> handleTransactionalConstraintViolation(org.springframework.transaction.TransactionSystemException ex) Handle transactional constraint violation exception.- Parameters:
ex
- the ex- Returns:
- the response entity
-
handleConstraintViolation
@ExceptionHandler(javax.validation.ConstraintViolationException.class) protected org.springframework.http.ResponseEntity<Object> handleConstraintViolation(javax.validation.ConstraintViolationException ex) Handle constraint violation exception.- Parameters:
ex
- the ex- Returns:
- the response entity
-
handleDataIntegrityViolation
@ExceptionHandler(org.springframework.dao.DataIntegrityViolationException.class) protected org.springframework.http.ResponseEntity<Object> handleDataIntegrityViolation(org.springframework.dao.DataIntegrityViolationException ex) Handle data integrity violation exception.- Parameters:
ex
- the ex- Returns:
- the response entity
-