]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/Python/Ecc/ParserWarning.py
Fix build break caused by adding DebugAgentLib to the DXE Core.
[mirror_edk2.git] / BaseTools / Source / Python / Ecc / ParserWarning.py
CommitLineData
30fdf114
LG
1## The exception class that used to report error messages when preprocessing\r
2#\r
3# Currently the "ToolName" is set to be "ECC PP".\r
4#\r
5class Warning (Exception):\r
6 ## The constructor\r
7 #\r
8 # @param self The object pointer\r
9 # @param Str The message to record\r
10 # @param File The FDF name\r
11 # @param Line The Line number that error occurs\r
12 #\r
13 def __init__(self, Str, File = None, Line = None):\r
14 self.message = Str\r
15 self.FileName = File\r
16 self.LineNumber = Line\r
17 self.ToolName = 'ECC PP'