|
VistALink v1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
gov.va.med.exception.FoundationsException
public class FoundationsException
FoundationsException provides adds nested exception functionality to standard exceptions. This functionality is no longer necessary starting in Java 1.4, whose java.lang.Throwable class introduces built-in support for nested exceptions. However, for backwards compatibility, VistALink exceptions still inherit from this class. Implements methods to return nested exception message as part of current exception message.
The nested exception, uses throwable so it can encapsulate all types of exceptions even Error exceptions.
Constructor Summary | |
---|---|
FoundationsException()
Default constructor. |
|
FoundationsException(java.lang.String msg)
Constructor. |
|
FoundationsException(java.lang.String msg,
java.lang.Throwable nestedException)
Constructor. |
|
FoundationsException(java.lang.Throwable nestedException)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getFullStackTrace()
Deprecated. Use Throwable.getStackTrace() instead. |
java.lang.String |
getMessage()
Returns the detail message, including nested messages from the nested exceptions. |
java.lang.Throwable |
getNestedException()
Deprecated. Use Throwable.getCause() instead. |
void |
printStackTrace()
Prints the composite message and full embedded stack trace to System.err . |
void |
printStackTrace(java.io.PrintStream ps)
Prints the composite message and full embedded stack trace to the specified stream ps . |
void |
printStackTrace(java.io.PrintWriter pw)
Prints the composite message and full embedded stack trace to the specified print writer pw |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FoundationsException()
public FoundationsException(java.lang.String msg)
msg
- Throwable.Throwable(java.lang.String)
public FoundationsException(java.lang.Throwable nestedException)
nestedException
- exception to nest in new FoundationsExceptionpublic FoundationsException(java.lang.String msg, java.lang.Throwable nestedException)
msg
- Exception messagenestedException
- exception to nest in new FoundationsExceptionMethod Detail |
---|
public java.lang.Throwable getNestedException()
getNestedException
in interface FoundationsExceptionInterface
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
Throwable.getMessage()
public void printStackTrace(java.io.PrintStream ps)
ps
.
printStackTrace
in class java.lang.Throwable
ps
- the print streamThrowable.printStackTrace(java.io.PrintStream)
public void printStackTrace(java.io.PrintWriter pw)
pw
printStackTrace
in class java.lang.Throwable
pw
- the print writerThrowable.printStackTrace(java.io.PrintWriter)
public void printStackTrace()
System.err
.
printStackTrace
in class java.lang.Throwable
Throwable.printStackTrace()
public java.lang.String getFullStackTrace()
getFullStackTrace
in interface FoundationsExceptionInterface
FoundationsExceptionInterface.getFullStackTrace()
|
VistALink v1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |