Class HvlAuthRestExceptionHandler
java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
tr.com.havelsan.javarch.service.handler.HvlRestExceptionHandler
tr.com.havelsan.javarch.oauth.auth.starter.exception.HvlAuthRestExceptionHandler
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.MessageSourceAware
@ControllerAdvice
public class HvlAuthRestExceptionHandler
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
ConstructorsConstructorDescriptionHvlAuthRestExceptionHandler(tr.com.havelsan.javarch.service.configuration.properties.HvlServiceProperties serviceProperties) Instantiates a new HvlAuthRestExceptionHandler. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.http.ResponseEntity<Object> Handle oauth exception response entity.Methods inherited from class tr.com.havelsan.javarch.service.handler.HvlRestExceptionHandler
handle, handleAsyncRequestTimeoutException, handleChecked, handleConversionNotSupported, handleDataIntegrityViolation, handleErrorResponseException, handleExceptionInternal, handleHibernateConstraintViolation, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleJavaConstraintViolation, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleOptimisticLock, handlePersistenceException, handleServletRequestBindingException, handleTransactionalConstraintViolation, handleTypeMismatch, handleUncheckedMethods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
createProblemDetail, createResponseEntity, getMessageSource, handleBindException, handleException, handleHandlerMethodValidationException, handleMaxUploadSizeExceededException, handleMethodValidationException, handleNoResourceFoundException, setMessageSource
-
Constructor Details
-
HvlAuthRestExceptionHandler
public HvlAuthRestExceptionHandler(tr.com.havelsan.javarch.service.configuration.properties.HvlServiceProperties serviceProperties) Instantiates a new HvlAuthRestExceptionHandler.- Parameters:
serviceProperties- the service properties
-
-
Method Details
-
handleOAuthException
@ExceptionHandler(HvlAuthException.class) protected org.springframework.http.ResponseEntity<Object> handleOAuthException(HvlAuthException ex) Handle oauth exception response entity.- Parameters:
ex- the ex- Returns:
- the response entity
-