public ConciergeError(ConciergeErrorCode code, string msg, string offendingField) { _code = code; _message = msg; _offendingField = offendingField; _id = null; }
/// <summary> /// Adds the error. /// </summary> /// <param name="errorCode">The error code.</param> /// <param name="msg">The MSG.</param> /// <param name="offendingField">The offending field.</param> /// <remarks></remarks> public void AddError(ConciergeErrorCode errorCode, string msg, string offendingField) { Success = false; Errors.Add(new ConciergeError(errorCode, msg, offendingField)); }
/// <summary> /// Adds the error. /// </summary> /// <param name="errorCode">The error code.</param> /// <param name="msg">The MSG.</param> /// <remarks></remarks> public void AddError(ConciergeErrorCode errorCode, string msg) { AddError(errorCode, msg, null); }
public ConciergeError(ConciergeErrorCode code, string msg) : this(code, msg, null) { }
public ConciergeClientException(ConciergeErrorCode code, string msg, params object[] args) : base(StringUtil.SafeFormat(msg, args)) { ErrorCode = code; }