OscarException¶
自定义异常类 OscarException ,用作特定于提供程序的异常类.
public sealed class OscarException : DbException
属性¶
public OscarError this[int Index] { get; }
public string Severity { get; }
// 错误代码
public string Code { get; }
// 错误消息
public string BaseMessage { get; }
// 错误消息详情
public string Detail { get; }
// 错误位置
public string Position { get; }
public string Where { get; }
public string File { get; }
public string Line { get; }
public string Routine { get; }
// 错误消息 SQL
public string ErrorSql { get; }
方法¶
// 获取异常信息转换为字符串消息
public string ToString();
继承¶
继承子 DbException