/// <summary> /// Initializes a new instance of the DbException class /// </summary> /// <param name="errorCode"></param> /// <param name="message"></param> /// <param name="innerEx"></param> public DbException(DbErrorCode errorCode, string message, Exception innerEx = null) : base(message, innerEx) { ErrorCode = errorCode; }
/// <summary> /// Initializes a new instance of the FailedExecutionException class. /// </summary> /// <param name="errorCode"></param> /// <param name="sql"></param> /// /// <param name="ex"></param> public FailedExecutionException(DbErrorCode errorCode, string sql, Exception ex) : base(errorCode, sql, ex) { }