public abstract class NetXMSClientException extends Exception
Modifier and Type | Field and Description |
---|---|
protected 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,
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 String |
getErrorMessage(int code,
String lang)
Get error message text for given error code.
|
String |
getLocalizedMessage() |
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected int errorCode
protected String additionalInfo
public NetXMSClientException(int errorCode)
errorCode
- error codepublic NetXMSClientException(int errorCode, String additionalInfo)
errorCode
- error codeadditionalInfo
- text with additional error-specific informationprotected abstract String getErrorMessage(int code, String lang)
code
- error codelang
- language codepublic int getErrorCode()
public String getMessage()
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
Copyright © 2014. All rights reserved.