com.objsys.asn1j.runtime
Class Asn1Exception

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.objsys.asn1j.runtime.Asn1Exception
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Asn1ConsVioException, Asn1EndOfBufferException, Asn1InvalidArgException, Asn1InvalidChoiceOptionException, Asn1InvalidEnumException, Asn1InvalidLengthException, Asn1InvalidObjectIDException, Asn1MderUnsupported, Asn1MissingRequiredException, Asn1NotInSetException, Asn1NotWellFormedXMLException, Asn1SeqOrderException, Asn1SetDuplicateException, Asn1TagMatchFailedException, Asn1ValueParseException

public class Asn1Exception
extends java.lang.RuntimeException

This class defines a generic ASN.1 exception for use as a base class for exceptions common to all encode/decode operations. Specific exception exceptions for BER, DER, and PER encoding and decoding are subclassed from this base class..

See Also:
Serialized Form

Constructor Summary
protected Asn1Exception()
          This constructor passes the given message text to the superclass.
  Asn1Exception(Asn1DecodeBuffer buffer, java.lang.String message)
          This constructor creates the base exception object and captures the current buffer offset from the decode buffer..
  Asn1Exception(java.lang.String message)
          This constructor passes the given message text to the superclass.
 
Method Summary
 
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)
This constructor passes the given message text to the superclass.

Parameters:
message - Error message text

Asn1Exception

protected Asn1Exception()
This constructor passes the given message text to the superclass.


Asn1Exception

public Asn1Exception(Asn1DecodeBuffer buffer,
                     java.lang.String message)
This constructor creates the base exception object and captures the current buffer offset from the decode buffer..

Parameters:
buffer - ASN.1 decode buffer object reference
message - Error message text