com.objsys.asn1j.runtime
Class Asn1InvalidChoiceOptionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.objsys.asn1j.runtime.Asn1Exception
                  extended by com.objsys.asn1j.runtime.Asn1InvalidChoiceOptionException
All Implemented Interfaces:
java.io.Serializable

public class Asn1InvalidChoiceOptionException
extends Asn1Exception

This class defines the 'ASN.1 invalid choice option' exception that is thrown from BER/DER methods when a CHOICE construct is detected to contain an element that is not within the given set.

See Also:
Serialized Form

Constructor Summary
Asn1InvalidChoiceOptionException()
          The default constructor is invoked in the encode logic if the object assigned to the choice item is not in the allowed set..
Asn1InvalidChoiceOptionException(Asn1BerDecodeBuffer buffer, Asn1Tag tag)
          This constructor creates an exception object with a textual message describing the tag of the invalid 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..
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Asn1InvalidChoiceOptionException

public Asn1InvalidChoiceOptionException(Asn1BerDecodeBuffer buffer,
                                        Asn1Tag tag)
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

Asn1InvalidChoiceOptionException

public Asn1InvalidChoiceOptionException(Asn1PerDecodeBuffer buffer,
                                        int index)
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

Asn1InvalidChoiceOptionException

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