Package org.apache.geode.management.cli
Class CommandProcessingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.geode.management.cli.CommandProcessingException
- All Implemented Interfaces:
Serializable
Indicates that an exception occurred while processing a GemFire Command Line Interface (CLI)
command. The exception may be thrown because of:
- parsing errors from unknown parameters
- errors from invalid values for parameters
- Since:
- GemFire 7.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intError Type indicating an invalid parameter of a command.static final intError Type indicating an invalid commandstatic final intError Type indicating an unknown or unavailable command.static final intError Type indicating an ambiguous command namestatic final intError Type indicating an invalid named parameter of a command.static final intError Type indicating an invalid value for a parameter of a command.static final intError Type indicating the absence of value for named parameter of a command.static final intError Type indicating the absence of a mandatory parameter of a command.static final intError Type indicating the absence of a mandatory named parameter of a command.static final intError Type indicating IO errors occurred while accessing File/Network resource -
Constructor Summary
ConstructorsConstructorDescriptionCommandProcessingException(String message, int errorType, Object errorData) Constructs a newCommandProcessingException -
Method Summary
Modifier and TypeMethodDescriptionReturns the error data.intReturns the Error Type.toString()Returns the String representation of thisCommandProcessingExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
COMMAND_INVALID
public static final int COMMAND_INVALIDError Type indicating an invalid command- See Also:
-
COMMAND_NAME_AMBIGUOUS
public static final int COMMAND_NAME_AMBIGUOUSError Type indicating an ambiguous command name- See Also:
-
COMMAND_INVALID_OR_UNAVAILABLE
public static final int COMMAND_INVALID_OR_UNAVAILABLEError Type indicating an unknown or unavailable command. GemFire CLI Commands are context sensitive & might not be always available.- See Also:
-
OPTION_INVALID
public static final int OPTION_INVALIDError Type indicating an invalid named parameter of a command.- See Also:
-
ARGUMENT_INVALID
public static final int ARGUMENT_INVALIDError Type indicating an invalid parameter of a command.- See Also:
-
OPTION_VALUE_INVALID
public static final int OPTION_VALUE_INVALIDError Type indicating an invalid value for a parameter of a command.- See Also:
-
REQUIRED_OPTION_MISSING
public static final int REQUIRED_OPTION_MISSINGError Type indicating the absence of a mandatory named parameter of a command.- See Also:
-
REQUIRED_ARGUMENT_MISSING
public static final int REQUIRED_ARGUMENT_MISSINGError Type indicating the absence of a mandatory parameter of a command.- See Also:
-
OPTION_VALUE_REQUIRED
public static final int OPTION_VALUE_REQUIREDError Type indicating the absence of value for named parameter of a command.- See Also:
-
RESOURCE_ACCESS_ERROR
public static final int RESOURCE_ACCESS_ERRORError Type indicating IO errors occurred while accessing File/Network resource- See Also:
-
-
Constructor Details
-
CommandProcessingException
Constructs a newCommandProcessingException- Parameters:
message- The error detail message.errorType- One of the error types defined inCommandProcessingExceptionerrorData- Additional information about the error.
-
-
Method Details