Package org.netxms.base
Class NXCPException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.netxms.base.NXCPException
- All Implemented Interfaces:
- Serializable
NXCP exception. Used to indicate protocol level errors.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructorsConstructorDescriptionNXCPException(int errorCode) Create new exception with given error code.NXCPException(int errorCode, Throwable cause) Create new exception with given error code and root cause.
- 
Method SummaryModifier and TypeMethodDescriptionintGet NetXMS API error code (RCC).Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Field Details- 
MESSAGE_TOO_LARGEpublic static final int MESSAGE_TOO_LARGE- See Also:
 
- 
SESSION_CLOSEDpublic static final int SESSION_CLOSED- See Also:
 
- 
NO_CIPHERpublic static final int NO_CIPHER- See Also:
 
- 
DECRYPTION_ERRORpublic static final int DECRYPTION_ERROR- See Also:
 
- 
FATAL_PROTOCOL_ERRORpublic static final int FATAL_PROTOCOL_ERROR- See Also:
 
 
- 
- 
Constructor Details- 
NXCPExceptionpublic NXCPException(int errorCode) Create new exception with given error code.- Parameters:
- errorCode- NetXMS API error code (RCC)
 
- 
NXCPExceptionCreate new exception with given error code and root cause.- Parameters:
- errorCode- NetXMS API error code (RCC)
- cause- root cause
 
 
- 
- 
Method Details- 
getErrorCodepublic int getErrorCode()Get NetXMS API error code (RCC).- Returns:
- NetXMS API error code
 
- 
getMessage- Overrides:
- getMessagein class- Throwable
- See Also:
 
 
-