Class 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 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 class Throwable
        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 class Throwable
        Parameters:
        errPrintWriter - the PrintWriter to use for printing.