/// <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; }
/// <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; } }
/// <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; }
/// <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; }
/// <summary> /// Initializes a new instance of the FailedChangeException class. /// </summary> /// <param name="kind">The error kind.</param> public FailedChangeException(ChangeErrorKinds kind) { Kind = kind; }