Class DbOperationException
Provides the exception for operations in database.
Inheritance
System.Object
System.Exception
System.ApplicationException
DbOperationException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
[Serializable]
public class DbOperationException : ApplicationException, ISerializable, _Exception
Constructors
DbOperationException()
Initializes an instance of the DbOperationException class.
Declaration
public DbOperationException()
DbOperationException(SerializationInfo, StreamingContext)
Declaration
protected DbOperationException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
DbOperationException(String)
Initializes an instance of the DbOperationException class using the specified error message.
Declaration
public DbOperationException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Error message. |
DbOperationException(String, Exception)
Initializes an instance of the DbOperationException class using the specified error message and the reference to inner exception which caused this exception.
Declaration
public DbOperationException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Error message. |
System.Exception | innerException | Inner exception. |
DbOperationException(String, String, Exception)
Initializes an instance of the DbOperationException class using the specified error message, sql text and the reference to inner exception which caused this exception.
Declaration
public DbOperationException(string message, string sqlText, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Error message. |
System.String | sqlText | Sql text. |
System.Exception | innerException | Inner exception. |
Properties
SqlText
Sql text.
Declaration
public string SqlText { get; }
Property Value
Type | Description |
---|---|
System.String |
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception