From 78d0a94bd2c074938c7df8477f28e5082ba38ef1 Mon Sep 17 00:00:00 2001 From: soukoku Date: Sat, 12 Apr 2014 11:12:18 -0400 Subject: [PATCH] How do I keep missing new file? --- NTwain/TransferErrorEventArgs.cs | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 NTwain/TransferErrorEventArgs.cs diff --git a/NTwain/TransferErrorEventArgs.cs b/NTwain/TransferErrorEventArgs.cs new file mode 100644 index 0000000..3246656 --- /dev/null +++ b/NTwain/TransferErrorEventArgs.cs @@ -0,0 +1,39 @@ +using NTwain.Data; +using NTwain.Values; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace NTwain +{ + /// + /// Contains TWAIN codes and source status when an error is encountered during transfer. + /// + public class TransferErrorEventArgs : EventArgs + { + /// + /// Gets the return code. + /// + /// + /// The return code. + /// + public ReturnCode ReturnCode { get; internal set; } + + /// + /// Gets the source status. + /// + /// + /// The source status. + /// + public TWStatus SourceStatus { get; internal set; } + + /// + /// Gets the exception if the error is from some exception. + /// + /// + /// The exception. + /// + public Exception Exception { get; internal set; } + } +}