com.objsys.asn1j.runtime
Class Asn1ConsVioException

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

public class Asn1ConsVioException
extends Asn1Exception

This class defines the 'ASN.1 constraint violation' exception that is thrown when an element is parsed that is outside the bounds to a defined constraint..

See Also:
Serialized Form

Constructor Summary
Asn1ConsVioException(java.lang.String varname, double value)
          This constructor creates an exception object with a standard message based on the given variable name and value.
Asn1ConsVioException(java.lang.String varname, long value)
          This constructor creates an exception object with a standard message based on the given variable name and value.
Asn1ConsVioException(java.lang.String varname, java.lang.String value)
          This constructor creates an exception object with a standard message based on the given variable name and value.
 
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

Asn1ConsVioException

public Asn1ConsVioException(java.lang.String varname,
                            long value)
This constructor creates an exception object with a standard message based on the given variable name and value. The form of the message is 'Element <varname> with value <value> violates defined constraint'.

Parameters:
varname - Name of variable that violates constraint
value - Value of variable

Asn1ConsVioException

public Asn1ConsVioException(java.lang.String varname,
                            double value)
This constructor creates an exception object with a standard message based on the given variable name and value. The form of the message is 'Element <varname> with value <value> violates defined constraint'.

Parameters:
varname - Name of variable that violates constraint
value - Value of variable

Asn1ConsVioException

public Asn1ConsVioException(java.lang.String varname,
                            java.lang.String value)
This constructor creates an exception object with a standard message based on the given variable name and value. The form of the message is 'Element <varname> with value <value> violates defined constraint'.

Parameters:
varname - Name of variable that violates constraint
value - Value of variable