|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.netxms.api.client.NetXMSClientException
public abstract class NetXMSClientException
Generic NetXMS client exception. Intended to be subclassed by concrete client implementation.
Field Summary | |
---|---|
protected java.lang.String |
additionalInfo
Additional information about this error |
protected int |
errorCode
Application-specific error code |
Constructor Summary | |
---|---|
NetXMSClientException(int errorCode)
Create NetXMS client exception with given error code. |
|
NetXMSClientException(int errorCode,
java.lang.String additionalInfo)
Create NetXMS client exception with given error code and additional information. |
Method Summary | |
---|---|
int |
getErrorCode()
Get exception's error code. |
protected abstract java.lang.String |
getErrorMessage(int code)
Get error message text for given error code. |
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 |
---|
protected int errorCode
protected java.lang.String additionalInfo
Constructor Detail |
---|
public NetXMSClientException(int errorCode)
errorCode
- error codepublic NetXMSClientException(int errorCode, java.lang.String additionalInfo)
errorCode
- error codeadditionalInfo
- text with additional error-specific informationMethod Detail |
---|
protected abstract java.lang.String getErrorMessage(int code)
code
- error code
public int getErrorCode()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |