Class NotAllowedException

All Implemented Interfaces:
Serializable

public class NotAllowedException extends ServerException
Permission denied, method not allowed, function or scripting blocked.

Details use the {kind, details?} format with variants defined in NotAllowedDetailKind. Auth details further nest AuthDetailKind variants.

See Also:
  • Method Details

    • isTokenExpired

      public boolean isTokenExpired()
      Returns true when the token used for authentication has expired.
      Returns:
      whether the detail matches Auth -> TokenExpired
    • isInvalidAuth

      public boolean isInvalidAuth()
      Returns true when authentication failed (invalid credentials).
      Returns:
      whether the detail matches Auth -> InvalidAuth
    • isScriptingBlocked

      public boolean isScriptingBlocked()
      Returns true when scripting is blocked.
      Returns:
      whether the detail kind is Scripting
    • getMethodName

      public String getMethodName()
      Returns the name of the method that is not allowed, if applicable.
      Returns:
      the method name, or null
    • getFunctionName

      public String getFunctionName()
      Returns the name of the function that is not allowed, if applicable.
      Returns:
      the function name, or null
    • getTargetName

      public String getTargetName()
      Returns the name of the target that is not allowed, if applicable.
      Returns:
      the target name, or null