org.netxms.base
Class NXCPException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.netxms.base.NXCPException
All Implemented Interfaces:
java.io.Serializable

public class NXCPException
extends java.lang.Exception

NXCP exception. Used to indicate protocol level errors.

See Also:
Serialized Form

Field Summary
static int DECRYPTION_ERROR
           
static int MESSAGE_TOO_LARGE
           
static int NO_CIPHER
           
static int SESSION_CLOSED
           
 
Constructor Summary
NXCPException(int errorCode)
           
NXCPException(int errorCode, java.lang.Throwable cause)
           
 
Method Summary
 int getErrorCode()
           
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MESSAGE_TOO_LARGE

public static final int MESSAGE_TOO_LARGE
See Also:
Constant Field Values

SESSION_CLOSED

public static final int SESSION_CLOSED
See Also:
Constant Field Values

NO_CIPHER

public static final int NO_CIPHER
See Also:
Constant Field Values

DECRYPTION_ERROR

public static final int DECRYPTION_ERROR
See Also:
Constant Field Values
Constructor Detail

NXCPException

public NXCPException(int errorCode)
Parameters:
errorCode -

NXCPException

public NXCPException(int errorCode,
                     java.lang.Throwable cause)
Parameters:
errorCode -
Method Detail

getErrorCode

public int getErrorCode()
Returns:
the errorCode

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable


Copyright © 2012. All Rights Reserved.