Asn1InvalidChoiceOptionException Class Reference

Inheritance diagram for Asn1InvalidChoiceOptionException:
Asn1Exception

List of all members.

Public Member Functions

 Asn1InvalidChoiceOptionException ()
 Asn1InvalidChoiceOptionException (Asn1PerDecodeBuffer buffer, int index)
 Asn1InvalidChoiceOptionException (Asn1BerDecodeBuffer buffer, Asn1Tag tag)

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

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

Parameters:
buffer BER Decode buffer object reference
tag Tag value of duplicate element

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

Parameters:
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..