Class InvalidEnumValueException
The exception that is thrown when not one of the named values defined for the meta enumeration.
Inheritance
Implements
Inherited Members
Namespace: Mediachase.BusinessFoundation.Data.Meta
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2Syntax
public class InvalidEnumValueException : Exception, ISerializable, _Exception
Constructors
InvalidEnumValueException()
Initializes a new instance of the InvalidEnumValueException class.
Declaration
public InvalidEnumValueException()
InvalidEnumValueException(MetaFieldType, String)
Declaration
public InvalidEnumValueException(MetaFieldType type, string enumValue)
Parameters
Type | Name | Description |
---|---|---|
MetaFieldType | type | |
System.String | enumValue |
InvalidEnumValueException(SerializationInfo, StreamingContext)
Initializes a new instance of the InvalidEnumValueException class.
Declaration
protected InvalidEnumValueException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
Exceptions
Type | Condition |
---|---|
System.Runtime.Serialization.SerializationException | The class name is null or System.Exception.HResult is zero (0). |
System.ArgumentNullException | The info parameter is null. |
InvalidEnumValueException(String)
Initializes a new instance of the InvalidEnumValueException class.
Declaration
public InvalidEnumValueException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
InvalidEnumValueException(String, Exception)
Initializes a new instance of the InvalidEnumValueException class.
Declaration
public InvalidEnumValueException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.Exception | inner | The inner. |
Properties
FieldType
Gets the type of the field.
Declaration
public MetaFieldType FieldType { get; }
Property Value
Type | Description |
---|---|
MetaFieldType | The type of the field. |
Value
Gets the value.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
System.String | The value. |