summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Ecc/ParserWarning.py
blob: 547360d9270c3116f28526df8367e24be882f27d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
## The exception class that used to report error messages when preprocessing
#
# Currently the "ToolName" is set to be "ECC PP".
#
class Warning (Exception):
    ## The constructor
    #
    #   @param  self        The object pointer
    #   @param  Str         The message to record
    #   @param  File        The FDF name
    #   @param  Line        The Line number that error occurs
    #
    def __init__(self, Str, File = None, Line = None):
        self.message = Str
        self.FileName = File
        self.LineNumber = Line
        self.ToolName = 'ECC PP'