Asn1TagMatchFailedException Class Reference

Inheritance diagram for Asn1TagMatchFailedException:
Asn1Exception

List of all members.

Public Member Functions

 Asn1TagMatchFailedException (Asn1BerDecodeBuffer buffer, Asn1Tag expectedTag)
 Asn1TagMatchFailedException (Asn1BerDecodeBuffer buffer, Asn1Tag expectedTag, Asn1Tag parsedTag)

Detailed Description

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


Constructor & Destructor Documentation

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

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