/// <summary> /// Initializes a new instance of the <see cref="ErrorAction"/> class. /// </summary> /// <param name="type">The type.</param> /// <param name="errorCode">The error code.</param> public ErrorAction(ErrorActionType type, int errorCode) : this(type, errorCode, string.Empty) { }
/// <summary> /// Initializes a new instance of the <see cref="MyErrorHandler"/> class. /// </summary> /// <param name="defaultActionType">Default type of the action.</param> /// <param name="nextHandler">The next handler.</param> public MyErrorHandler(ErrorActionType defaultActionType, ErrorHandler nextHandler) : base(nextHandler) { this._defaultActionType = defaultActionType; }
/// <summary> /// Initializes a new instance of the <see cref="ErrorAction"/> class. /// </summary> /// <param name="type">The type.</param> /// <param name="errorCode">The error code.</param> /// <param name="errorMessage">The error message.</param> public ErrorAction(ErrorActionType type, int errorCode, string errorMessage) { this._type = type; this._errorCode = errorCode; this.ErrorMessage = errorMessage; }