Module jakarta.mvc

Class CsrfValidationException

All Implemented Interfaces:
Serializable

public class CsrfValidationException extends 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:
  • Field Details

  • Constructor Details

    • CsrfValidationException

      public CsrfValidationException(String message)
      Create a new CsrfValidationException
      Parameters:
      message - the detail message