public class NXCException 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 |
|---|
NXCException(int errorCode) |
NXCException(int errorCode,
String additionalInfo) |
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Get exception's error code.
|
protected 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, toStringprotected int errorCode
protected String additionalInfo
public NXCException(int errorCode)
errorCode - public NXCException(int errorCode,
String additionalInfo)
errorCode - additionalInfo - protected String getErrorMessage(int code, String lang)
code - error codelang - language codepublic int getErrorCode()
public String getMessage()
getMessage in class Throwablepublic String getLocalizedMessage()
getLocalizedMessage in class ThrowableCopyright © 2015. All rights reserved.