Class CargoException

    • Constructor Detail

      • CargoException

        public CargoException​(String message)
        Parameters:
        message - the exception message
      • CargoException

        public CargoException​(String message,
                              Throwable throwable)
        Parameters:
        message - the exception message
        throwable - the exception to wrap
    • Method Detail

      • getOriginalThrowable

        public Throwable getOriginalThrowable()
        Returns:
        the wrapped exception
      • printStackTrace

        public void printStackTrace()
        Print the full stack trace, including the original exception.
        Overrides:
        printStackTrace in class Throwable
      • printStackTrace

        public void printStackTrace​(PrintStream ps)
        Print the full stack trace, including the original exception.
        Overrides:
        printStackTrace in class Throwable
        Parameters:
        ps - the byte stream in which to print the stack trace
      • printStackTrace

        public void printStackTrace​(PrintWriter pw)
        Print the full stack trace, including the original exception.
        Overrides:
        printStackTrace in class Throwable
        Parameters:
        pw - the character stream in which to print the stack trace