Class InvalidFieldValueTypeException
This exception was thrown when an incorrect type was used to get or set the field.
Inheritance
System.Object
InvalidFieldValueTypeException
Namespace: OnixS.SimpleBinaryEncoding
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public class InvalidFieldValueTypeException : Exception
Constructors
InvalidFieldValueTypeException()
Initializes a new instance of the exception class.
Declaration
public InvalidFieldValueTypeException()
InvalidFieldValueTypeException(Int32, String, String)
Initializes a new instance of the exception class with a specified error.
Declaration
public InvalidFieldValueTypeException(int tag, string requestedType, string actualType)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tag | Field tag. |
System.String | requestedType | Requested field type. |
System.String | actualType | Actual field type. |
InvalidFieldValueTypeException(String)
Initializes a new instance of the exception class with a specified error.
Declaration
public InvalidFieldValueTypeException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Error message. |
InvalidFieldValueTypeException(String, Exception)
Initializes a new instance of the exception class with a specified error.
Declaration
public InvalidFieldValueTypeException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Error message. |
Exception | innerException | Inner exception. |
Properties
ActualType
Actual field type.
Declaration
public string ActualType { get; }
Property Value
Type | Description |
---|---|
System.String |
RequestedType
Requested field type.
Declaration
public string RequestedType { get; }
Property Value
Type | Description |
---|---|
System.String |
Tag
Field tag.
Declaration
public int Tag { get; }
Property Value
Type | Description |
---|---|
System.Int32 |