Class VSpringMvcExceptionHandler
java.lang.Object
io.vertigo.ui.impl.springmvc.controller.VSpringMvcExceptionHandler
@ControllerAdvice(assignableTypes=AbstractVSpringMvcController.class)
public final class VSpringMvcExceptionHandler
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjecthandleExpiredViewContextException(ExpiredViewContextException ex, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) static ObjecthandleSecurityException(io.vertigo.account.authorization.VSecurityException ex, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) static ObjecthandleSessionException(SessionException ex, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) static ObjecthandleThrowable(Throwable th, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) static ObjecthandleValidationUserException(ValidationUserException ex, jakarta.servlet.http.HttpServletRequest request) static ObjecthandleVUserException(io.vertigo.core.lang.VUserException ex, jakarta.servlet.http.HttpServletRequest request)
-
Constructor Details
-
VSpringMvcExceptionHandler
public VSpringMvcExceptionHandler()
-
-
Method Details
-
handleSessionException
@ResponseBody @ExceptionHandler(io.vertigo.vega.webservice.exception.SessionException.class) @ResponseStatus(UNAUTHORIZED) public static Object handleSessionException(SessionException ex, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Throwable - Throws:
Throwable
-
handleExpiredViewContextException
@ResponseBody @ExceptionHandler(ExpiredViewContextException.class) @ResponseStatus(UNAUTHORIZED) public static Object handleExpiredViewContextException(ExpiredViewContextException ex, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Throwable - Throws:
Throwable
-
handleSecurityException
@ResponseBody @ExceptionHandler(io.vertigo.account.authorization.VSecurityException.class) @ResponseStatus(FORBIDDEN) public static Object handleSecurityException(io.vertigo.account.authorization.VSecurityException ex, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Throwable - Throws:
Throwable
-
handleThrowable
@ResponseBody @ExceptionHandler(java.lang.Throwable.class) @ResponseStatus(INTERNAL_SERVER_ERROR) public static Object handleThrowable(Throwable th, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Throwable - Throws:
Throwable
-
handleValidationUserException
@ResponseBody @ExceptionHandler(io.vertigo.vega.webservice.validation.ValidationUserException.class) @ResponseStatus(UNPROCESSABLE_ENTITY) public static Object handleValidationUserException(ValidationUserException ex, jakarta.servlet.http.HttpServletRequest request) -
handleVUserException
@ResponseBody @ExceptionHandler(io.vertigo.core.lang.VUserException.class) @ResponseStatus(UNPROCESSABLE_ENTITY) public static Object handleVUserException(io.vertigo.core.lang.VUserException ex, jakarta.servlet.http.HttpServletRequest request)
-