com.objsys.asn1j.runtime
Class Asn1ValueParseException

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.Asn1ValueParseException
All Implemented Interfaces:
java.io.Serializable

public class Asn1ValueParseException
extends Asn1Exception

This class defines the 'ASN.1 value parse' exception that is thrown when a string containing an ASN.1 value cannot be parsed.

See Also:
Serialized Form

Constructor Summary
Asn1ValueParseException(java.lang.String text)
          This constructor creates an exception object with a textual message describing the expected and parsed tag values.
Asn1ValueParseException(java.lang.String text, int offset)
          This constructor creates an exception object with a textual message describing the expected and parsed tag values.
 
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

Asn1ValueParseException

public Asn1ValueParseException(java.lang.String text)
This constructor creates an exception object with a textual message describing the expected and parsed tag values.

Parameters:
text - The value string that could not be parsed

Asn1ValueParseException

public Asn1ValueParseException(java.lang.String text,
                               int offset)
This constructor creates an exception object with a textual message describing the expected and parsed tag values. This version allows the offset in the string to also be specified.

Parameters:
text - The value string that could not be parsed
offset - Byte offset to error location in string