Module jakarta.mvc

Class 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
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CsrfValidationException

        public CsrfValidationException​(java.lang.String message)
        Create a new CsrfValidationException
        Parameters:
        message - the detail message