ASN1C C# Runtime Library
7.5
|
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) | |
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.
Asn1InvalidChoiceOptionException | ( | Asn1BerDecodeBuffer | buffer, |
Asn1Tag | tag | ||
) |
This constructor creates an exception object with a textual message describing the tag of the invalid element..
buffer | BER Decode buffer object reference |
tag | Tag value of duplicate element |
Asn1InvalidChoiceOptionException | ( | Asn1PerDecodeBuffer | buffer, |
int | index | ||
) |
This constructor creates an exception object with a textual message describing the PER choice index of the invalid element..
buffer | PER Decode buffer object reference |
index | Parsed choice index value |
The default constructor is invoked in the encode logic if the object assigned to the choice item is not in the allowed set..