public class ApplicationException extends Exception
General application exception.
| Constructor and Description |
|---|
ApplicationException(ApplicationErrorCode errorCode,
Object... args)
Creates a new exception.
|
ApplicationException(int errorCode,
String message)
Creates a new exception with message and error code.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Returns the error code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ApplicationException(int errorCode,
String message)
Creates a new exception with message and error code.
errorCode - the error code as return value for an applicationmessage - a message for the exceptionpublic ApplicationException(ApplicationErrorCode errorCode, Object... args)
Creates a new exception.
errorCode - the exception error codeargs - the arguments for the error codeCopyright © 2016–2017. All rights reserved.