Package com.oss.asn1
Class AbstractException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.oss.asn1.AbstractException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ControlTableNotFoundException
,VisitorException
The AbstractException class is the base class for all exceptions
- Since:
- ASN.1/Java 1.0-beta A
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Fill-in the stack trace printed by theprintStackTrace
from anotherThrowable
Returns theThrowable
that was used to fill-in the stack trace.Returns the descriptive message for the exception.int
Get the reason that this exception was thrown.void
Prints this exception and its backtrace to the standard error stream.void
Prints this exception and its backtrace to the specified print stream.void
Prints this exception and its backtrace to the specified print writer.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Method Details
-
getReason
public int getReason()Get the reason that this exception was thrown.- Returns:
- an int, the reason code.
-
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 classThrowable
- Returns:
- descriptive message for the exception.
-
fillInBackTrace
Fill-in the stack trace printed by theprintStackTrace
from anotherThrowable
- Parameters:
t
-Throwable
whose stack trace indicates the place of the exception in the code
-
getBackTrace
Returns theThrowable
that was used to fill-in the stack trace. TheThrowable
returned is either the object passed as an argument tofillInBackTrace
orthis
, if thefillInBackTrace
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 classThrowable
-
printStackTrace
Prints this exception and its backtrace to the specified print stream.- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
Prints this exception and its backtrace to the specified print writer.- Overrides:
printStackTrace
in classThrowable
-