Package com.oss.asn1

Class AbstractException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ControlTableNotFoundException, VisitorException

public abstract class AbstractException extends Exception
The AbstractException class is the base class for all exceptions
Since:
ASN.1/Java 6.0
See Also:
  • Method Details

    • getReason

      public int getReason()
      Get the reason that this exception was thrown.
      Returns:
      an int, the reason code.
    • getMessage

      public String getMessage()
      Returns the descriptive message for the exception. If the exception has been constructed without a message, the method returns the string in the form 'Error xx', where 'xx' is the reason code.
      Overrides:
      getMessage in class Throwable
      Returns:
      descriptive message for the exception.
    • fillInBackTrace

      public void fillInBackTrace(Throwable t)
      Fill-in the stack trace printed by the printStackTrace from another Throwable
      Parameters:
      t - Throwable whose stack trace indicates the place of the exception in the code
    • getBackTrace

      public Throwable getBackTrace()
      Returns the Throwable that was used to fill-in the stack trace. The Throwable returned is either the object passed as an argument to fillInBackTrace or this, if the fillInBackTrace was never called.
      Returns:
      the Throwable that was used to fill-in the stack trace.
    • printStackTrace

      public void printStackTrace()
      Prints this exception and its backtrace to the standard error stream.
      Overrides:
      printStackTrace in class Throwable
    • printStackTrace

      public void printStackTrace(PrintStream s)
      Prints this exception and its backtrace to the specified print stream.
      Overrides:
      printStackTrace in class Throwable
    • printStackTrace

      public void printStackTrace(PrintWriter s)
      Prints this exception and its backtrace to the specified print writer.
      Overrides:
      printStackTrace in class Throwable