Example #1
0
 /// <summary>
 /// Initializes a new instance of the ChangingResultInfo class.
 /// </summary>
 /// <param name="code">The change eror kind.</param>
 /// <param name="message">The message.</param>
 public ChangingResultInfo(ChangeErrorKinds code, string message)
     : this()
 {
     State     = ChangeMethods.Invalid;
     Message   = message;
     ErrorCode = code;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the ChangingResultInfo class.
 /// </summary>
 /// <param name="state">The change method result.</param>
 /// <param name="message">The message.</param>
 /// <param name="ex">The exception.</param>
 public ChangingResultInfo(ChangeErrorKinds state, string message, Exception ex)
     : this(state, message)
 {
     exception = ex;
     if (string.IsNullOrWhiteSpace(message))
     {
         Message = ex.Message;
     }
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the FailedChangeException class.
 /// </summary>
 /// <param name="kind">The error kind.</param>
 /// <param name="message">The message that describes the error.</param>
 public FailedChangeException(ChangeErrorKinds kind, string message)
     : base(message)
 {
     Kind = kind;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the FailedChangeException class.
 /// </summary>
 /// <param name="kind">The error kind.</param>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="innerException">The exception that is the cause of the current exception, or a null reference</param>
 public FailedChangeException(ChangeErrorKinds kind, string message, Exception innerException)
     : base(message, innerException)
 {
     Kind = kind;
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the FailedChangeException class.
 /// </summary>
 /// <param name="kind">The error kind.</param>
 public FailedChangeException(ChangeErrorKinds kind)
 {
     Kind = kind;
 }