示例#1
0
        public HardwareErrorException(Exception exception)
            : base(exception.Message, exception)
        {
            HardwareErrorException hwEx = exception as HardwareErrorException;

            error = hwEx != null ? hwEx.error : new ErrorState(ErrorState.GeneralError, HardwareErrorSeverity.Error);
        }
        public ErrorStateEventArgs(HardwareErrorException exception)
        {
            if (exception == null)
            {
                throw new ArgumentNullException("exception");
            }

            errState       = exception.Error;
            this.exception = exception;
        }
 public ErrorStateEventArgs(ErrorState error)
 {
     errState  = error;
     exception = null;
 }