Warning description (API) More...
Public Member Functions | |
Warning (const string &reason) | |
Warning (const char *format,...) | |
Warning (int code, const string &reason) | |
Warning (int code, const char *format,...) | |
Warning (const Warning &warning) | |
Warning & | operator= (const Warning &warning) |
string | getReason () const |
int | getCode () const |
Public Member Functions inherited from Hurricane::Exception | |
string | what () const |
string | textWhat () const |
string | htmlWhat () const |
Additional Inherited Members | |
Static Public Member Functions inherited from Hurricane::Exception | |
static void | setTextTranslator (const TextTranslator &translator) |
static void | setHtmlTranslator (const TextTranslator &translator) |
Warning description (API)
There is no difference with the Error type but the printed message is prefixed by WARNING instead of ERROR.
type: Warning::Inherit -> Exception Useful for calling the base class methods without knowing this class.
You can also use this object to print messages without throwing an exception as shown below :
The same remark applies to all exception types.
Hurricane::Warning::Warning | ( | const string & | reason | ) |
Builds a warning characterized by a reason (code defaults to zero).
Hurricane::Warning::Warning | ( | const char * | format, |
... | |||
) |
Builds a warning characterized by a reason, using the vararg
protocol and printf
format (code defaults to zero).
Hurricane::Warning::Warning | ( | int | code, |
const string & | reason | ||
) |
Builds a warning characterized by a reason and a code useful within a switch.
Hurricane::Warning::Warning | ( | int | code, |
const char * | format, | ||
... | |||
) |
Builds a warning characterized by a reason and a code useful within a switch. The reason is supplied in a printf
like fashion.
Hurricane::Warning::Warning | ( | const Warning & | warning | ) |
Copy constructor.
|
inline |
Returns: the reason for which the warning was thrown.
|
inline |
Returns: the warning code number.
Generated by doxygen 1.9.1 on Thu Aug 11 2022 | Return to top of page |
Hurricane VLSI Database | Copyright © 2000-2020 Bull S.A. All rights reserved |