ASN1C C# Runtime Library  7.8
Public Member Functions | List of all members
Asn1ConsVioException Class Reference
Inheritance diagram for Asn1ConsVioException:
Asn1Exception

Public Member Functions

 Asn1ConsVioException (System.String varname, long value)
 
 Asn1ConsVioException (System.String varname, double value)
 
 Asn1ConsVioException (System.String varname, System.String value)
 
- Public Member Functions inherited from Asn1Exception
 Asn1Exception (System.String message)
 
 Asn1Exception (System.String message, System.Exception innerException)
 
 Asn1Exception (Asn1DecodeBuffer buffer, System.String message)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Asn1ConsVioException() [1/3]

Asn1ConsVioException ( System.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
varnameName of variable that violates constraint
valueValue of variable

◆ Asn1ConsVioException() [2/3]

Asn1ConsVioException ( System.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
varnameName of variable that violates constraint
valueValue of variable

◆ Asn1ConsVioException() [3/3]

Asn1ConsVioException ( System.String  varname,
System.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
varnameName of variable that violates constraint
valueValue of variable