Esempio n. 1
0
        public FailureInfo(
            string type,
            string message,
            FailureInfo cause,
            IEnumerable <FailureInfo> suppressed,
            IEnumerable <string> stack,
            ErrorLocation errorLocation
            )
        {
            if (string.IsNullOrEmpty(type))
            {
                throw new ArgumentNullException("type");
            }

            this.Type          = type;
            this.Message       = message;
            this.Cause         = cause;
            this.Suppressed    = suppressed ?? throw new ArgumentNullException("suppressed");
            this.Stack         = stack;
            this.ErrorLocation = errorLocation;
        }
Esempio n. 2
0
 public QueryError(string message, string sqlState, int errorCode, string errorName, string errorType, ErrorLocation errorLocation, FailureInfo failureInfo)
 {
     this.Message       = message;
     this.SqlState      = sqlState;
     this.ErrorCode     = errorCode;
     this.ErrorName     = errorName;
     this.ErrorType     = errorType;
     this.ErrorLocation = errorLocation;
     this.FailureInfo   = failureInfo;
 }