Class UserDbException
- Namespace
- SWConfigDataSharedLib.Exceptions
- Assembly
- IpPbxCDSSharedLib.dll
Exception caused by SQL failure. All SQL failures expect concurrency violations will be handled with this exception. An additionally ErrorCode is provided. The language of the messages is the language of the SQL Server. The excpetion contains also the ErrorNumber and the ErrorCode (HResult) from the original SQLException.
public class UserDbException : SBaseException
- Inheritance
-
UserDbException
- Inherited Members
Constructors
UserDbException(Err, SqlException)
Constructor
public UserDbException(UserDbException.Err ErrCode, SqlException ex)
Parameters
ErrCode
UserDbException.ErrErrorCode.
ex
SqlException
UserDbException(Err, string)
Constructor
public UserDbException(UserDbException.Err ErrCode, string message)
Parameters
ErrCode
UserDbException.ErrErrorCode.
message
stringAdditional message.
UserDbException(Err, string, bool)
public UserDbException(UserDbException.Err ErrCode, string message, bool localized)
Parameters
ErrCode
UserDbException.Errmessage
stringlocalized
bool
UserDbException(SqlException)
public UserDbException(SqlException ex)
Parameters
ex
SqlException
Fields
errCode
Error Code
protected UserDbException.Err errCode
Field Value
m_ErrorNumber
protected int m_ErrorNumber
Field Value
m_HResult
protected int m_HResult
Field Value
Properties
ErrorCode
Returns the error code.
public virtual UserDbException.Err ErrorCode { get; }
Property Value
- UserDbException.Err
the error code
ErrorNumber
Returns the error number.
public virtual int ErrorNumber { get; }
Property Value
- int
the error code
HResult
Returns the hresult value.
public virtual int HResult { get; }
Property Value
- int
the error code
MessageSummary
Creates a message including the ErrorCode as string and the additional message.
public override string MessageSummary { get; }
Property Value
- string
message