]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/Ecc/ParserWarning.py
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / BaseTools / Source / Python / Ecc / ParserWarning.py
1 ## @file
2 # This file is used to be the warning class of ECC tool
3 #
4 # Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
5 # SPDX-License-Identifier: BSD-2-Clause-Patent
6 #
7
8 ## The exception class that used to report error messages when preprocessing
9 #
10 # Currently the "ToolName" is set to be "ECC PP".
11 #
12 class Warning (Exception):
13 ## The constructor
14 #
15 # @param self The object pointer
16 # @param Str The message to record
17 # @param File The FDF name
18 # @param Line The Line number that error occurs
19 #
20 def __init__(self, Str, File = None, Line = None):
21 self.message = Str
22 self.FileName = File
23 self.LineNumber = Line
24 self.ToolName = 'ECC PP'