Class RegistrationDeniedException

All Implemented Interfaces:
Serializable

public class RegistrationDeniedException extends CliCommandException
Signifies that registration of a command provider or a script is denied by a verifier.
See Also:
  • Constructor Details

    • RegistrationDeniedException

      public RegistrationDeniedException(String namespace, ICliCommand commandProvider, String reason)
      Creates a new instance for a denied command provider.
      Parameters:
      namespace - namespace the command provider was being registered in, cannot be null.
      commandProvider - command provider that was denied, cannot be null.
      reason - the reason registration is denied.
    • RegistrationDeniedException

      public RegistrationDeniedException(ICliScriptData scriptData, String reason)
      Creates a new instance for a denied script.
      Parameters:
      scriptData - the script that was denied, cannot be null.
      reason - the reason registration is denied.
  • Method Details

    • getNamespace

      public String getNamespace()
      Returns namespace the command provider or script was being registered in.
      Returns:
      namespace the command provider or script was being registered in. Never null.
    • getCommandProvider

      public ICliCommand getCommandProvider()
      Returns command provider that was denied.
      Returns:
      command provider that was denied. May be null. Either this or getScriptData() will be non-null.
    • getScriptData

      public ICliScriptData getScriptData()
      Returns script that was denied.
      Returns:
      script that was denied. May be null. Either this or getCommandProvider() will be non-null.
    • getReason

      public String getReason()
      Returns the reason registration is denied.
      Returns:
      the reason registration is denied. may be null.