public abstract class BaseException
extends java.lang.Exception
Throwable,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
UNKNOWN |
| Constructor and Description |
|---|
BaseException()
Empty constructor, initializes error code to "UNKNOWN" and message
and cause to null.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getCause()
Returns exception cause
|
int |
getErrorCode()
Returns exception error code
|
java.lang.String |
getMessage()
Returns exception message
|
java.lang.Throwable |
initCause(java.lang.Throwable cause)
Initializes cause of the exception
|
java.lang.String |
toString()
Converts this instance to string.
|
public static final int UNKNOWN
public BaseException()
public java.lang.Throwable getCause()
getCause in class java.lang.Throwablepublic int getErrorCode()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.Throwable initCause(java.lang.Throwable cause)
initCause in class java.lang.Throwablecause - exception causepublic java.lang.String toString()
toString in class java.lang.Throwable