]>
git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/Ecc/ParserWarning.py
2 # This file is used to be the warning class of ECC tool
4 # Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
5 # SPDX-License-Identifier: BSD-2-Clause-Patent
8 ## The exception class that used to report error messages when preprocessing
10 # Currently the "ToolName" is set to be "ECC PP".
12 class Warning (Exception):
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
20 def __init__(self
, Str
, File
= None, Line
= None):
23 self
.LineNumber
= Line
24 self
.ToolName
= 'ECC PP'