Committed C# port from Mohamad
[zxing.git] / csharp / ReaderException.cs
diff --git a/csharp/ReaderException.cs b/csharp/ReaderException.cs
new file mode 100755 (executable)
index 0000000..c84928a
--- /dev/null
@@ -0,0 +1,40 @@
+/*\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+*      http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+*/\r
+\r
+using System;\r
+namespace com.google.zxing\r
+{\r
+\r
+    /// <summary> The general exception class throw when something goes wrong during decoding of a barcode.\r
+    /// This includes, but is not limited to, failing checksums / error correction algorithms, being\r
+    /// unable to locate finder timing patterns, and so on.\r
+    /// \r
+    /// </summary>\r
+    /// <author>  srowen@google.com (Sean Owen)\r
+    /// </author>\r
+    //[Serializable]\r
+    public sealed class ReaderException : System.Exception\r
+    {\r
+\r
+          private static ReaderException instance = new ReaderException();\r
+\r
+          public ReaderException() {\r
+            // do nothing\r
+          }\r
+\r
+          public ReaderException(System.String message): base(message)\r
+          {\r
+          }\r
+    }\r
+}
\ No newline at end of file