]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Eot/ParserWarning.py
Sync EDKII BaseTools to BaseTools project r1903.
[mirror_edk2.git] / BaseTools / Source / Python / Eot / ParserWarning.py
diff --git a/BaseTools/Source/Python/Eot/ParserWarning.py b/BaseTools/Source/Python/Eot/ParserWarning.py
new file mode 100644 (file)
index 0000000..af8333a
--- /dev/null
@@ -0,0 +1,26 @@
+## @file\r
+# Warning information of Eot\r
+#\r
+#  Copyright (c) 2007 - 2010, Intel Corporation\r
+#\r
+#  All rights reserved. This program and the accompanying materials\r
+#  are licensed and made available under the terms and conditions of the BSD License\r
+#  which accompanies this distribution.  The full text of the license may be found at\r
+#  http://opensource.org/licenses/bsd-license.php\r
+#\r
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+class Warning (Exception):\r
+    ## The constructor\r
+    #\r
+    #   @param  self        The object pointer\r
+    #   @param  Str         The message to record\r
+    #   @param  File        The FDF name\r
+    #   @param  Line        The Line number that error occurs\r
+    #\r
+    def __init__(self, Str, File = None, Line = None):\r
+        self.message = Str\r
+        self.FileName = File\r
+        self.LineNumber = Line\r
+        self.ToolName = 'EOT'
\ No newline at end of file