Class ImpersonationControllerAdvice
- java.lang.Object
-
- com.netgrif.application.engine.impersonation.web.ImpersonationControllerAdvice
-
@RestControllerAdvice(assignableTypes=ImpersonationController.class) public class ImpersonationControllerAdvice extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ImpersonationControllerAdvice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity
handleException(IllegalImpersonationAttemptException ex)
ImpersonationNotAvailableResponse
handleException(ImpersonatedUserHasSessionException ex)
-
-
-
Method Detail
-
handleException
@ExceptionHandler public org.springframework.http.ResponseEntity handleException(IllegalImpersonationAttemptException ex)
-
handleException
@ExceptionHandler @ResponseStatus(BAD_REQUEST) public ImpersonationNotAvailableResponse handleException(ImpersonatedUserHasSessionException ex)
-
-