]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/Python/Ecc/ParserWarning.py
BaseTools: Replace BSD License with BSD+Patent License
[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
f7496d71 4# Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
2e351cbe 5# SPDX-License-Identifier: BSD-2-Clause-Patent\r
52302d4d
LG
6#\r
7\r
30fdf114
LG
8## The exception class that used to report error messages when preprocessing\r
9#\r
10# Currently the "ToolName" is set to be "ECC PP".\r
11#\r
12class Warning (Exception):\r
13 ## The constructor\r
14 #\r
15 # @param self The object pointer\r
16 # @param Str The message to record\r
17 # @param File The FDF name\r
18 # @param Line The Line number that error occurs\r
19 #\r
20 def __init__(self, Str, File = None, Line = None):\r
21 self.message = Str\r
22 self.FileName = File\r
23 self.LineNumber = Line\r
f7496d71 24 self.ToolName = 'ECC PP'\r