Class MetaObjectValidationException
The exception that is thrown when validators are invalid.
Implements
Inherited Members
Namespace: Mediachase.BusinessFoundation.Data.Meta
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2Syntax
public class MetaObjectValidationException : MetaObjectException, ISerializable, _Exception
Remarks
Use InvalidValidator property to enum invalid validators.
Constructors
MetaObjectValidationException(IValidator[])
Initializes a new instance of the MetaObjectValidationException class.
Declaration
public MetaObjectValidationException(IValidator[] invalidValidators)
Parameters
Type | Name | Description |
---|---|---|
IValidator[] | invalidValidators | The invalid validators. |
MetaObjectValidationException(SerializationInfo, StreamingContext)
Initializes a new instance of the MetaObjectValidationException class.
Declaration
protected MetaObjectValidationException(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. |
MetaObjectValidationException(String)
Initializes a new instance of the MetaObjectValidationException class.
Declaration
public MetaObjectValidationException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
MetaObjectValidationException(String, Exception)
Initializes a new instance of the MetaObjectValidationException class.
Declaration
public MetaObjectValidationException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.Exception | inner | The inner. |
Properties
InvalidValidator
Gets the invalid validator.
Declaration
public IValidator[] InvalidValidator { get; }
Property Value
Type | Description |
---|---|
IValidator[] | The invalid validator. |
Message
Gets a message that describes the current exception.
Declaration
public override string Message { get; }
Property Value
Type | Description |
---|---|
System.String |