public abstract class NetXMSClientException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
additionalInfo
Additional information about this error
|
protected int |
errorCode
Application-specific error code
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Get exception's error code.
|
protected abstract java.lang.String |
getErrorMessage(int code,
java.lang.String lang)
Get error message text for given error code.
|
java.lang.String |
getLocalizedMessage() |
java.lang.String |
getMessage() |
protected int errorCode
protected java.lang.String additionalInfo
public NetXMSClientException(int errorCode)
errorCode
- error codepublic NetXMSClientException(int errorCode, java.lang.String additionalInfo)
errorCode
- error codeadditionalInfo
- text with additional error-specific informationprotected abstract java.lang.String getErrorMessage(int code, java.lang.String lang)
code
- error codelang
- language codepublic int getErrorCode()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
Copyright © 2013. All Rights Reserved.