com.sun.slamd.asn1
Class ASN1Exception

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sun.slamd.asn1.ASN1Exception
All Implemented Interfaces:
java.io.Serializable

public class ASN1Exception
extends java.lang.Exception

This class defines an exception that may be thrown if there is a problem working with an ASN.1 element.

Author:
Neil A. Wilson
See Also:
Serialized Form

Constructor Summary
ASN1Exception(java.lang.String message)
          Creates a new ASN.1 exception with the specified message.
ASN1Exception(java.lang.String message, java.lang.Exception parentException)
          Creates a new ASN.1 exception with the specified message and parent exception.
 
Method Summary
 java.lang.Exception getParentException()
          Retrieves the parent exception that triggered this ASN.1 exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASN1Exception

public ASN1Exception(java.lang.String message)
Creates a new ASN.1 exception with the specified message.

Parameters:
message - The message associated with this exception.

ASN1Exception

public ASN1Exception(java.lang.String message,
                     java.lang.Exception parentException)
Creates a new ASN.1 exception with the specified message and parent exception.

Parameters:
message - The message associated with this exception.
parentException - The parent exception that triggered this ASN.1 exception.
Method Detail

getParentException

public java.lang.Exception getParentException()
Retrieves the parent exception that triggered this ASN.1 exception.

Returns:
The parent exception that triggered this ASN.1 exception, or null if no parent exception is available.