VMware GemFire Java API Reference
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:
java.io.Serializable
public class CommandProcessingException extends java.lang.RuntimeExceptionIndicates 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intARGUMENT_INVALIDError Type indicating an invalid parameter of a command.static intCOMMAND_INVALIDError Type indicating an invalid commandstatic intCOMMAND_INVALID_OR_UNAVAILABLEError Type indicating an unknown or unavailable command.static intCOMMAND_NAME_AMBIGUOUSError Type indicating an ambiguous command namestatic intOPTION_INVALIDError Type indicating an invalid named parameter of a command.static intOPTION_VALUE_INVALIDError Type indicating an invalid value for a parameter of a command.static intOPTION_VALUE_REQUIREDError Type indicating the absence of value for named parameter of a command.static intREQUIRED_ARGUMENT_MISSINGError Type indicating the absence of a mandatory parameter of a command.static intREQUIRED_OPTION_MISSINGError Type indicating the absence of a mandatory named parameter of a command.static intRESOURCE_ACCESS_ERRORError Type indicating IO errors occurred while accessing File/Network resource
-
Constructor Summary
Constructors Constructor Description CommandProcessingException(java.lang.String message, int errorType, java.lang.Object errorData)Constructs a newCommandProcessingException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetErrorData()Returns the error data.intgetErrorType()Returns the Error Type.java.lang.StringtoString()Returns the String representation of thisCommandProcessingException
-
-
-
Field Detail
-
COMMAND_INVALID
public static final int COMMAND_INVALID
Error Type indicating an invalid command- See Also:
- Constant Field Values
-
COMMAND_NAME_AMBIGUOUS
public static final int COMMAND_NAME_AMBIGUOUS
Error Type indicating an ambiguous command name- See Also:
- Constant Field Values
-
COMMAND_INVALID_OR_UNAVAILABLE
public static final int COMMAND_INVALID_OR_UNAVAILABLE
Error Type indicating an unknown or unavailable command. GemFire CLI Commands are context sensitive & might not be always available.- See Also:
- Constant Field Values
-
OPTION_INVALID
public static final int OPTION_INVALID
Error Type indicating an invalid named parameter of a command.- See Also:
- Constant Field Values
-
ARGUMENT_INVALID
public static final int ARGUMENT_INVALID
Error Type indicating an invalid parameter of a command.- See Also:
- Constant Field Values
-
OPTION_VALUE_INVALID
public static final int OPTION_VALUE_INVALID
Error Type indicating an invalid value for a parameter of a command.- See Also:
- Constant Field Values
-
REQUIRED_OPTION_MISSING
public static final int REQUIRED_OPTION_MISSING
Error Type indicating the absence of a mandatory named parameter of a command.- See Also:
- Constant Field Values
-
REQUIRED_ARGUMENT_MISSING
public static final int REQUIRED_ARGUMENT_MISSING
Error Type indicating the absence of a mandatory parameter of a command.- See Also:
- Constant Field Values
-
OPTION_VALUE_REQUIRED
public static final int OPTION_VALUE_REQUIRED
Error Type indicating the absence of value for named parameter of a command.- See Also:
- Constant Field Values
-
RESOURCE_ACCESS_ERROR
public static final int RESOURCE_ACCESS_ERROR
Error Type indicating IO errors occurred while accessing File/Network resource- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommandProcessingException
public CommandProcessingException(java.lang.String message, int errorType, java.lang.Object errorData)Constructs a newCommandProcessingException- Parameters:
message- The error detail message.errorType- One of the error types defined inCommandProcessingExceptionerrorData- Additional information about the error.
-
-
Method Detail
-
getErrorType
public int getErrorType()
Returns the Error Type.- Returns:
- the Error Type
-
getErrorData
public java.lang.Object getErrorData()
Returns the error data.- Returns:
- the error data
-
toString
public java.lang.String toString()
Returns the String representation of thisCommandProcessingException- Overrides:
toStringin classjava.lang.Throwable
-
-