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

Public Member Functions

 Asn1InvalidChoiceOptionException (Asn1BerDecodeBuffer buffer, Asn1Tag tag)
 
 Asn1InvalidChoiceOptionException (Asn1PerDecodeBuffer buffer, int index)
 
 Asn1InvalidChoiceOptionException ()
 
- 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 invalid choice option' exception that is thrown when a CHOICE construct is detected to contain an element that is not within the given set.

Constructor & Destructor Documentation

◆ Asn1InvalidChoiceOptionException() [1/3]

This constructor creates an exception object with a textual message describing the tag of the invalid element..

Parameters
bufferBER Decode buffer object reference
tagTag value of duplicate element

◆ Asn1InvalidChoiceOptionException() [2/3]

This constructor creates an exception object with a textual message describing the PER choice index of the invalid element..

Parameters
bufferPER Decode buffer object reference
indexParsed choice index value

◆ Asn1InvalidChoiceOptionException() [3/3]

The default constructor is invoked in the encode logic if the object assigned to the choice item is not in the allowed set..