Class DataAccessException
Thrown by data access classes
Inheritance
System.Object
System.Exception
DataAccessException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
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: Azos.Data.Access
Assembly: Azos.dll
Syntax
[Serializable]
public class DataAccessException : DataException, ISerializable
Constructors
DataAccessException()
Declaration
public DataAccessException()
DataAccessException(SerializationInfo, StreamingContext)
Declaration
protected DataAccessException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
DataAccessException(String)
Declaration
public DataAccessException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message |
DataAccessException(String, KeyViolationKind, String)
Declaration
public DataAccessException(string message, KeyViolationKind kvKind, string keyViolation)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
KeyViolationKind | kvKind | |
System.String | keyViolation |
DataAccessException(String, Exception)
Declaration
public DataAccessException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
System.Exception | inner |
DataAccessException(String, Exception, KeyViolationKind, String)
Declaration
public DataAccessException(string message, Exception inner, KeyViolationKind kvKind, string keyViolation)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
System.Exception | inner | |
KeyViolationKind | kvKind | |
System.String | keyViolation |
Fields
KEY_VIOLATION_FLD_NAME
Declaration
public const string KEY_VIOLATION_FLD_NAME = "DAE-KV"
Field Value
Type | Description |
---|---|
System.String |
KEY_VIOLATION_KIND_FLD_NAME
Declaration
public const string KEY_VIOLATION_KIND_FLD_NAME = "DAE-KVK"
Field Value
Type | Description |
---|---|
System.String |
KeyViolation
Provides the name of entity/index/field that was violated and resulted in this exception
Declaration
public readonly string KeyViolation
Field Value
Type | Description |
---|---|
System.String |
KeyViolationKind
Spcifies the sub-type of key violation
Declaration
public readonly KeyViolationKind KeyViolationKind
Field Value
Type | Description |
---|---|
KeyViolationKind |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
Overrides
Implements
System.Runtime.Serialization.ISerializable