Base exception class for FMT holding the type, section and message of a given exception.
More...
#include <FMTException.h>
|
| | FMTException () |
| | Default constructor for FMTException.
|
| |
| virtual | ~FMTException ()=default |
| | Default virtual destructor for FMTException.
|
| |
| | FMTException (FMTexc p_exception, FMTlev p_level, Core::FMTsection p_section, const std::string &p_message, const std::string &p_method, const std::string &p_file, const int &p_line, const std::string &p_FrenchDescription, const std::string &p_EnglishDescription) |
| | Construct a FMTException from an exception type, a section, a message and the location where it occurred.
|
| |
| | FMTException (const FMTException &rhs)=default |
| | Default copy constructor for FMTException.
|
| |
| FMTException & | operator= (const FMTException &rhs)=default |
| | Default copy assignment operator for FMTException.
|
| |
| FMTexc | getType () const |
| | Return the type of exception held by this FMTException.
|
| |
| Core::FMTsection | getSection () const |
| | Return the section in which the exception occurred.
|
| |
| const char * | what () const noexcept override |
| | Override the what function of the base exception class returning the message string.
|
| |
| bool | hold () const |
| | Return the value of the holdup member.
|
| |
| void | setHold (bool side) |
| | Set the value of the holdup member.
|
| |
| std::string | getMethod () const |
| | Return the method in which the exception occurred.
|
| |
| std::string | getFile () const |
| | Return the source file in which the exception occurred.
|
| |
| int | getLine () const |
| | Return the source file line in which the exception occurred.
|
| |
| const std::string & | getDescription (bool p_french=false) const |
| | Return the description of the exception thrown.
|
| |
| std::string | getSrcInfo () const |
| | Return a formatted string for the location of the exception.
|
| |
| const std::string & | getMessage () const |
| | Return the message of the exception.
|
| |
| FMTlev | getLevel () const |
| | Return the level of the exception.
|
| |
| bool | isFatal () const |
| | return true if it is fatal
|
| |
| void | setIgnore () |
| | set a ignore message to the exception and turn the level to warning
|
| |
| void | setPrintLevel (int p_level) |
| | set the level of print and change the message
|
| |
Base exception class for FMT holding the type, section and message of a given exception.
◆ FMTException() [1/3]
| Exception::FMTException::FMTException |
( |
| ) |
|
◆ ~FMTException()
| virtual Exception::FMTException::~FMTException |
( |
| ) |
|
|
virtualdefault |
◆ FMTException() [2/3]
| Exception::FMTException::FMTException |
( |
FMTexc |
p_exception, |
|
|
FMTlev |
p_level, |
|
|
Core::FMTsection |
p_section, |
|
|
const std::string & |
p_message, |
|
|
const std::string & |
p_method, |
|
|
const std::string & |
p_file, |
|
|
const int & |
p_line, |
|
|
const std::string & |
p_FrenchDescription, |
|
|
const std::string & |
p_EnglishDescription |
|
) |
| |
Construct a FMTException from an exception type, a section, a message and the location where it occurred.
- Parameters
-
| [in] | p_exception | the exception type. |
| [in] | p_level | level of the exception type. |
| [in] | p_section | the section in which the exception occurred. |
| [in] | p_message | the message of the exception. |
| [in] | p_method | the method where the exception occurred. |
| [in] | p_file | the file where the exception occurred. |
| [in] | p_line | the line where the exception occurred. |
| [in] | p_FrenchDescription | french description. |
| [in] | p_EnglishDescription | english description. |
◆ FMTException() [3/3]
| Exception::FMTException::FMTException |
( |
const FMTException & |
rhs | ) |
|
|
default |
◆ getDescription()
| const std::string & Exception::FMTException::getDescription |
( |
bool |
p_french = false | ) |
const |
Return the description of the exception thrown.
- Parameters
-
| [in] | p_french | if true will be in french |
- Returns
- the description
◆ getFile()
| std::string Exception::FMTException::getFile |
( |
| ) |
const |
|
inline |
Return the source file in which the exception occurred.
- Returns
- the source file.
◆ getLevel()
| FMTlev Exception::FMTException::getLevel |
( |
| ) |
const |
Return the level of the exception.
- Returns
- the level
◆ getLine()
| int Exception::FMTException::getLine |
( |
| ) |
const |
|
inline |
Return the source file line in which the exception occurred.
- Returns
- the source file line.
◆ getMessage()
| const std::string & Exception::FMTException::getMessage |
( |
| ) |
const |
Return the message of the exception.
- Returns
- the message string
◆ getMethod()
| std::string Exception::FMTException::getMethod |
( |
| ) |
const |
|
inline |
Return the method in which the exception occurred.
- Returns
- the method.
◆ getSection()
Return the section in which the exception occurred.
- Returns
- the section.
◆ getSrcInfo()
| std::string Exception::FMTException::getSrcInfo |
( |
| ) |
const |
Return a formatted string for the location of the exception.
- Returns
- the formatted source location.
◆ getType()
| FMTexc Exception::FMTException::getType |
( |
| ) |
const |
Return the type of exception held by this FMTException.
- Returns
- the exception type.
◆ hold()
| bool Exception::FMTException::hold |
( |
| ) |
const |
Return the value of the holdup member.
- Returns
- the holdup value.
◆ isFatal()
| bool Exception::FMTException::isFatal |
( |
| ) |
const |
return true if it is fatal
- Returns
- true or false
◆ operator=()
◆ setHold()
| void Exception::FMTException::setHold |
( |
bool |
side | ) |
|
Set the value of the holdup member.
- Parameters
-
| [in] | side | the value to set. |
◆ setIgnore()
| void Exception::FMTException::setIgnore |
( |
| ) |
|
set a ignore message to the exception and turn the level to warning
◆ setPrintLevel()
| void Exception::FMTException::setPrintLevel |
( |
int |
p_level | ) |
|
set the level of print and change the message
- Parameters
-
| [in] | p_level | the level of print |
◆ what()
| const char * Exception::FMTException::what |
( |
| ) |
const |
|
overridenoexcept |
Override the what function of the base exception class returning the message string.
- Returns
- the message string.
◆ boost::serialization::access
| friend class boost::serialization::access |
|
friend |
Serialize function used for serialization to do multiprocessing across multiple cpus (pickle in Python).
- Template Parameters
-
- Parameters
-
| [in,out] | ar | the archive to serialize to or from. |
| [in] | version | the serialization version. |
The documentation for this class was generated from the following file: