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 Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionNXCPException
(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 Summary
Modifier and TypeMethodDescriptionint
Get NetXMS API error code (RCC).Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
MESSAGE_TOO_LARGE
public static final int MESSAGE_TOO_LARGE- See Also:
-
SESSION_CLOSED
public static final int SESSION_CLOSED- See Also:
-
NO_CIPHER
public static final int NO_CIPHER- See Also:
-
DECRYPTION_ERROR
public static final int DECRYPTION_ERROR- See Also:
-
FATAL_PROTOCOL_ERROR
public static final int FATAL_PROTOCOL_ERROR- See Also:
-
-
Constructor Details
-
NXCPException
public NXCPException(int errorCode) Create new exception with given error code.- Parameters:
errorCode
- NetXMS API error code (RCC)
-
NXCPException
Create new exception with given error code and root cause.- Parameters:
errorCode
- NetXMS API error code (RCC)cause
- root cause
-
-
Method Details
-
getErrorCode
public int getErrorCode()Get NetXMS API error code (RCC).- Returns:
- NetXMS API error code
-
getMessage
- Overrides:
getMessage
in classThrowable
- See Also:
-