public class FoundationsException extends Exception implements FoundationsExceptionInterface
The nested exception, uses throwable so it can encapsulate all types of exceptions even Error exceptions.
| Constructor and Description |
|---|
FoundationsException()
Default constructor.
|
FoundationsException(String msg)
Constructor.
|
FoundationsException(String msg,
Throwable nestedException)
Constructor.
|
FoundationsException(Throwable nestedException)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFullStackTrace()
Deprecated.
Use Throwable.getStackTrace() instead.
|
String |
getMessage()
Returns the detail message, including nested messages from the nested exceptions.
|
Throwable |
getNestedException()
Deprecated.
Use Throwable.getCause() instead.
|
protected String |
getOriginalMessage()
Returns oringal message that was passed into the exception constructor.
|
void |
printStackTrace()
Prints the composite message and full embedded stack trace to
System.err. |
void |
printStackTrace(PrintStream ps)
Prints the composite message and full embedded stack trace to the
specified stream
ps. |
void |
printStackTrace(PrintWriter pw)
Prints the composite message and full embedded stack trace to the
specified print writer
pw |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic FoundationsException()
public FoundationsException(String msg)
msg - Throwable.Throwable(java.lang.String)public FoundationsException(Throwable nestedException)
nestedException - exception to nest in new FoundationsExceptionpublic Throwable getNestedException()
getNestedException in interface FoundationsExceptionInterfaceprotected String getOriginalMessage()
public String getMessage()
getMessage in class ThrowableThrowable.getMessage()public void printStackTrace(PrintStream ps)
ps.printStackTrace in class Throwableps - the print streamThrowable.printStackTrace(java.io.PrintStream)public void printStackTrace(PrintWriter pw)
pwprintStackTrace in class Throwablepw - the print writerThrowable.printStackTrace(java.io.PrintWriter)public void printStackTrace()
System.err.printStackTrace in class ThrowableThrowable.printStackTrace()public String getFullStackTrace()
getFullStackTrace in interface FoundationsExceptionInterfaceFoundationsExceptionInterface.getFullStackTrace()Copyright © 2026. All rights reserved.