ASN1C C# Runtime Library  7.4
Public Member Functions | List of all members
Asn1TagMatchFailedException Class Reference
Inheritance diagram for Asn1TagMatchFailedException:
Asn1Exception

Public Member Functions

 Asn1TagMatchFailedException (Asn1BerDecodeBuffer buffer, Asn1Tag expectedTag, Asn1Tag parsedTag)
 
 Asn1TagMatchFailedException (Asn1BerDecodeBuffer buffer, Asn1Tag expectedTag)
 
- Public Member Functions inherited from Asn1Exception
 Asn1Exception (System.String message)
 
 Asn1Exception (System.String message, System.Exception innerException)
 
 Asn1Exception (Asn1DecodeBuffer buffer, System.String message)
 

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() [1/2]

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
bufferBER decode buffer object reference
expectedTagExpected tag value
parsedTagParsed tag value

◆ Asn1TagMatchFailedException() [2/2]

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
bufferBER decode buffer object reference
expectedTagExpected tag value