]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/Python/Ecc/ParserWarning.py
Sync EDKII BaseTools to BaseTools project r1971
[mirror_edk2.git] / BaseTools / Source / Python / Ecc / ParserWarning.py
CommitLineData
52302d4d
LG
1## @file\r
2# This file is used to be the warning class of ECC tool\r
3#\r
40d841f6
LG
4# Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
5# This program and the accompanying materials\r
52302d4d
LG
6# are licensed and made available under the terms and conditions of the BSD License\r
7# which accompanies this distribution. The full text of the license may be found at\r
8# http://opensource.org/licenses/bsd-license.php\r
9#\r
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12#\r
13\r
30fdf114
LG
14## The exception class that used to report error messages when preprocessing\r
15#\r
16# Currently the "ToolName" is set to be "ECC PP".\r
17#\r
18class Warning (Exception):\r
19 ## The constructor\r
20 #\r
21 # @param self The object pointer\r
22 # @param Str The message to record\r
23 # @param File The FDF name\r
24 # @param Line The Line number that error occurs\r
25 #\r
26 def __init__(self, Str, File = None, Line = None):\r
27 self.message = Str\r
28 self.FileName = File\r
29 self.LineNumber = Line\r
30 self.ToolName = 'ECC PP'