Exemplo n.º 1
0
 /// <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)
 {
 }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 /// <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;
 }