]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/Ecc/ParserWarning.py
Check In tool source code based on Build tool project revision r1655.
[mirror_edk2.git] / BaseTools / Source / Python / Ecc / ParserWarning.py
1 ## The exception class that used to report error messages when preprocessing
2 #
3 # Currently the "ToolName" is set to be "ECC PP".
4 #
5 class Warning (Exception):
6 ## The constructor
7 #
8 # @param self The object pointer
9 # @param Str The message to record
10 # @param File The FDF name
11 # @param Line The Line number that error occurs
12 #
13 def __init__(self, Str, File = None, Line = None):
14 self.message = Str
15 self.FileName = File
16 self.LineNumber = Line
17 self.ToolName = 'ECC PP'