Top Description Fields Constructors
jakarta.mvc.security

public Class CsrfValidationException

extends RuntimeException
Class Inheritance

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.
Author
Christian Kaltepoth
Since
1.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
CsrfValidationException(String
the detail message
message
)

Create a new CsrfValidationException

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

CsrfValidationExceptionback to summary
public CsrfValidationException(String message)

Create a new CsrfValidationException

Parameters
message:String

the detail message