Package com.cognex.cmbsdk.exceptions
Class DataManOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.cognex.cmbsdk.exceptions.DataManException
com.cognex.cmbsdk.exceptions.DataManOperationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IncorrectChecksumException,InvalidCommandException,InvalidParameterException,OperationCanceledException,ParameterRejectedException,SystemOfflineException,UnknownErrorException
Base class for all operation-related DataMan SDK exceptions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDataManOperationException(String command, DmccResponseStatus status) Initializes a new instance of theDataManOperationExceptionclass. -
Method Summary
Modifier and TypeMethodDescriptionGets the command that caused the error.Gets the response status of the command.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
mCommand
-
mStatus
-
-
Constructor Details
-
DataManOperationException
Initializes a new instance of theDataManOperationExceptionclass.- Parameters:
command- The command that caused the error.status- The result status code
-
-
Method Details
-
getCommand
Gets the command that caused the error.- Returns:
- The command that caused the error.
-
getStatus
Gets the response status of the command.- Returns:
- The response status of the command
-