Class DataValidationException
Base class for validation exceptions.
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Kephas.Data.Validation
Assembly: Kephas.Data.dll
Syntax
public class DataValidationException : DataException, ISerializable, ISeverityQualifiedException
Constructors
| Improve this Doc View SourceDataValidationException(Object, IDataValidationResult)
Initializes a new instance of the DataValidationException class.
Declaration
public DataValidationException(object validatedEntity, IDataValidationResult validationResult)
Parameters
Type | Name | Description |
---|---|---|
System.Object | validatedEntity | The validated entity. |
IDataValidationResult | validationResult | The validation result. |
DataValidationException(String)
Initializes a new instance of the DataValidationException class.
Declaration
protected DataValidationException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
DataValidationException(String, Exception)
Initializes a new instance of the DataValidationException class.
Declaration
protected DataValidationException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.Exception | inner | The inner. |
Properties
| Improve this Doc View SourceValidatedEntity
Gets the validated entity.
Declaration
public object ValidatedEntity { get; }
Property Value
Type | Description |
---|---|
System.Object | The validated entity. |
ValidationResult
Gets the validation result.
Declaration
public IDataValidationResult ValidationResult { get; }
Property Value
Type | Description |
---|---|
IDataValidationResult | The validation result. |
Implements
System.Runtime.Serialization.ISerializable