2010-03-01 00:39:39 +01:00
|
|
|
## @file
|
|
|
|
# This file is used to be the warning class of ECC tool
|
|
|
|
#
|
2018-07-05 11:40:04 +02:00
|
|
|
# Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:03:11 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2010-03-01 00:39:39 +01:00
|
|
|
#
|
|
|
|
|
2009-07-17 11:10:31 +02:00
|
|
|
## 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
|
2018-07-05 11:40:04 +02:00
|
|
|
self.ToolName = 'ECC PP'
|