public class AsyncException extends Exception
Constructor and Description |
---|
AsyncException(Exception sourceException,
net.tpky.mc.concurrent.AsyncStackTrace catchPoint)
Creates a new AsyncException that encapsulates the given exception and stores where and when
it occurred.
|
Modifier and Type | Method and Description |
---|---|
Exception |
getSyncSrcException()
Returns the source exception.
|
void |
printStackTrace(PrintStream errPrintStream)
Prints the exception's stack trace on the given stream.
|
void |
printStackTrace(PrintWriter errPrintWriter)
Prints the exception's stack trace using the given print writer.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
public AsyncException(Exception sourceException, net.tpky.mc.concurrent.AsyncStackTrace catchPoint)
sourceException
- the source exception.catchPoint
- the place in the asynchronous stack where the source exception occurred.public Exception getSyncSrcException()
public void printStackTrace(PrintStream errPrintStream)
printStackTrace
in class Throwable
errPrintStream
- the PrintStream to print on.public void printStackTrace(PrintWriter errPrintWriter)
printStackTrace
in class Throwable
errPrintWriter
- the PrintWriter to use for printing.