Class AccessDeniedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codename1.backend.security.AccessDeniedException
Direct Known Subclasses:
CsrfException

public class AccessDeniedException extends RuntimeException
The caller may not do what it asked. Thrown anywhere under a SecurityFilterChain, it is answered 403 by the chain's AccessDeniedHandler when the caller is signed in, and by its AuthenticationEntryPoint -- sign in first -- when the caller is anonymous.
  • Constructor Details

    • AccessDeniedException

      public AccessDeniedException(String message)
    • AccessDeniedException

      public AccessDeniedException(String message, Throwable cause)