Package com.tapkey.mobile.concurrent
Class AsyncException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.tapkey.mobile.concurrent.AsyncException
-
- All Implemented Interfaces:
Serializable
public class AsyncException extends Exception
An AsyncException represents an exception that occurred during an asynchronous operation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AsyncException
public 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.- Parameters:
sourceException
- the source exception.catchPoint
- the place in the asynchronous stack where the source exception occurred.
-
-
Method Detail
-
getSyncSrcException
public Exception getSyncSrcException()
Returns the source exception.- Returns:
- the source exception.
-
printStackTrace
public void printStackTrace(PrintStream errPrintStream)
Prints the exception's stack trace on the given stream.- Overrides:
printStackTrace
in classThrowable
- Parameters:
errPrintStream
- the PrintStream to print on.
-
printStackTrace
public void printStackTrace(PrintWriter errPrintWriter)
Prints the exception's stack trace using the given print writer.- Overrides:
printStackTrace
in classThrowable
- Parameters:
errPrintWriter
- the PrintWriter to use for printing.
-
-