|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
info.fingo.util.EnclosingException
public abstract class EnclosingException
This is the abstract exception which may enclose other exception. It also provides the exception code management.
| Field Summary | |
|---|---|
protected int |
code
The exception code |
protected java.lang.Exception |
nestedException
The enclosed exception |
| Constructor Summary | |
|---|---|
EnclosingException()
Default constructor. |
|
EnclosingException(java.lang.Exception nestedException)
Constructor for EnclosingException. |
|
EnclosingException(int exceptionCode)
Constructor for EnclosingException. |
|
EnclosingException(int exceptionCode,
java.lang.Exception nestedException)
Constructor for EnclosingException. |
|
EnclosingException(java.lang.String message)
Constructor for EnclosingException. |
|
EnclosingException(java.lang.String message,
java.lang.Exception nestedException)
Constructor for EnclosingException. |
|
EnclosingException(java.lang.String message,
int exceptionCode)
Constructor for EnclosingException. |
|
EnclosingException(java.lang.String message,
int exceptionCode,
java.lang.Exception nestedException)
Constructor for EnclosingException. |
|
| Method Summary | |
|---|---|
java.lang.Throwable |
fillInStackTrace()
|
int |
getCode()
Returns the code. |
java.lang.String |
getLocalizedMessage()
|
java.lang.String |
getMessage()
|
void |
printStackTrace()
|
void |
printStackTrace(java.io.PrintStream ps)
|
void |
printStackTrace(java.io.PrintWriter pw)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Throwable |
|---|
getCause, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Exception nestedException
protected int code
| Constructor Detail |
|---|
public EnclosingException()
public EnclosingException(java.lang.String message)
message - the exception messagepublic EnclosingException(int exceptionCode)
exceptionCode - the exception code
public EnclosingException(java.lang.String message,
int exceptionCode,
java.lang.Exception nestedException)
message - the exception messageexceptionCode - the exception codenestedException - the nested exception
public EnclosingException(int exceptionCode,
java.lang.Exception nestedException)
exceptionCode - the exception codenestedException - the nested exceptionpublic EnclosingException(java.lang.Exception nestedException)
nestedException - the nested exception
public EnclosingException(java.lang.String message,
int exceptionCode)
message - the exception messageexceptionCode - the exception code
public EnclosingException(java.lang.String message,
java.lang.Exception nestedException)
message - the exception messagenestedException - the nested exception| Method Detail |
|---|
public int getCode()
public java.lang.String toString()
toString in class java.lang.Throwablepublic java.lang.Throwable fillInStackTrace()
fillInStackTrace in class java.lang.Throwablepublic java.lang.String getLocalizedMessage()
getLocalizedMessage in class java.lang.Throwablepublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream ps)
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintWriter pw)
printStackTrace in class java.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||