Example #1
0
 public ConciergeError(ConciergeErrorCode code, string msg, string offendingField)
 {
     _code           = code;
     _message        = msg;
     _offendingField = offendingField;
     _id             = null;
 }
Example #2
0
 /// <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));
 }
Example #3
0
 /// <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);
 }
Example #4
0
 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;
 }