com.objsys.asn1j.runtime
Class Asn1TagMatchFailedException

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
                  extended by com.objsys.asn1j.runtime.Asn1TagMatchFailedException
All Implemented Interfaces:
java.io.Serializable

public class Asn1TagMatchFailedException
extends Asn1Exception

This class defines the 'ASN.1 tag match failed' exception that is thrown from BER/DER methods when an expected tag is not matched..

See Also:
Serialized Form

Constructor Summary
Asn1TagMatchFailedException(Asn1BerDecodeBuffer buffer, Asn1Tag expectedTag)
          This constructor creates an exception object with a textual message describing only the expected tag value.
Asn1TagMatchFailedException(Asn1BerDecodeBuffer buffer, Asn1Tag expectedTag, Asn1Tag parsedTag)
          This constructor creates an exception object with a textual message describing the expected and parsed tag values..
 
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

Asn1TagMatchFailedException

public Asn1TagMatchFailedException(Asn1BerDecodeBuffer buffer,
                                   Asn1Tag expectedTag,
                                   Asn1Tag parsedTag)
This constructor creates an exception object with a textual message describing the expected and parsed tag values..

Parameters:
buffer - BER decode buffer object reference
expectedTag - Expected tag value
parsedTag - Parsed tag value

Asn1TagMatchFailedException

public Asn1TagMatchFailedException(Asn1BerDecodeBuffer buffer,
                                   Asn1Tag expectedTag)
This constructor creates an exception object with a textual message describing only the expected tag value. It is used in cases where the parsed tag value cannot be determined.

Parameters:
buffer - BER decode buffer object reference
expectedTag - Expected tag value