- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.mvc.security.CsrfValidationException
-
- All Implemented Interfaces:
java.io.Serializable
public class CsrfValidationException extends java.lang.RuntimeException
This exception is thrown by the MVC implementation if the CSRF token validation fails. By default, this will result in a 403 status code sent to the client. The application can provide a custom exception mapper for this exception type to customize this default behavior.- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description CsrfValidationException(java.lang.String message)
Create a new CsrfValidationException
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-