Class RegistrationDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.e1c.g5.v8.dt.cli.api.CliCommandException
com.e1c.g5.v8.dt.internal.cli.api.RegistrationDeniedException
- All Implemented Interfaces:
Serializable
Signifies that registration of a command provider or a script is denied by a
verifier
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRegistrationDeniedException
(ICliScriptData scriptData, String reason) Creates a new instance for a denied script.RegistrationDeniedException
(String namespace, ICliCommand commandProvider, String reason) Creates a new instance for a denied command provider. -
Method Summary
Modifier and TypeMethodDescriptionReturns command provider that was denied.Returns namespace the command provider or script was being registered in.Returns the reason registration is denied.Returns script that was denied.Methods inherited from class com.e1c.g5.v8.dt.cli.api.CliCommandException
getStatus
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RegistrationDeniedException
Creates a new instance for a denied command provider.- Parameters:
namespace
- namespace the command provider was being registered in, cannot benull
.commandProvider
- command provider that was denied, cannot benull
.reason
- the reason registration is denied.
-
RegistrationDeniedException
Creates a new instance for a denied script.- Parameters:
scriptData
- the script that was denied, cannot benull
.reason
- the reason registration is denied.
-
-
Method Details
-
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
Returns command provider that was denied.- Returns:
- command provider that was denied. May be
null
. Either this orgetScriptData()
will be non-null.
-
getScriptData
Returns script that was denied.- Returns:
- script that was denied. May be
null
. Either this orgetCommandProvider()
will be non-null.
-
getReason
Returns the reason registration is denied.- Returns:
- the reason registration is denied. may be
null
.
-