![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
This class is used to represent parsing errors for the different parser implemented in aGrUM. More...
#include <agrum/base/core/errorsContainer.h>
Public Member Functions | |
Class constructors and destructors | |
| ParseError (bool is_error, const std::string &msg, Idx line) | |
| Class constructor. | |
| ParseError (bool is_error, const std::string &msg, const std::string &filename, Idx line, Idx col=0) | |
| Class constructor. | |
| ParseError (bool is_error, const std::string &msg, const std::string &filename, const std::string &code, Idx line, Idx col=0) | |
| Class constructor. | |
| ParseError (const ParseError &cont) | |
| Copy constructor. | |
Class operator | |
| bool | is_error |
| If false, this gum::ParseError is a warning. | |
| Idx | line |
| The line of this gum::ParseError. | |
| Idx | column |
| The column of this gum::ParseError, default is 0. | |
| std::string | msg |
| The gum::ParseError message. | |
| std::string | filename |
| The file of this gum::ParseError, default is "". | |
| std::string | code |
| The code of this gum::ParseError, default is "". | |
| ParseError | operator= (const ParseError &cont) |
| Copy operator. | |
| std::string | toString () const |
| Return a std::string representation of this gum::ParseError. | |
| std::string | toElegantString () const |
| Return an elegant std::string representation of this gum::ParseError. | |
This class is used to represent parsing errors for the different parser implemented in aGrUM.
Definition at line 69 of file errorsContainer.h.
Class constructor.
| is_error | True if this is an error. |
| msg | The parsing error message. |
| line | The line where the parsing error occured. |
References is_error, line, and msg.
Referenced by ParseError(), and operator=().
| gum::ParseError::ParseError | ( | bool | is_error, |
| const std::string & | msg, | ||
| const std::string & | filename, | ||
| Idx | line, | ||
| Idx | col = 0 ) |
Class constructor.
| is_error | If false, then this ParseError is a warning. |
| msg | The parsing error message. |
| filename | The file where the parsing error occured. |
| line | The line where the parsing error occured. |
| col | The column where the parsing error occured. |
| gum::ParseError::ParseError | ( | bool | is_error, |
| const std::string & | msg, | ||
| const std::string & | filename, | ||
| const std::string & | code, | ||
| Idx | line, | ||
| Idx | col = 0 ) |
| gum::ParseError::ParseError | ( | const ParseError & | cont | ) |
Copy constructor.
| cont | The gum::ParseError to copy. |
References ParseError().
| ParseError gum::ParseError::operator= | ( | const ParseError & | cont | ) |
Copy operator.
| cont | The gum::ParseError to copy. |
References ParseError().
| std::string gum::ParseError::toElegantString | ( | ) | const |
Return an elegant std::string representation of this gum::ParseError.
| std::string gum::ParseError::toString | ( | ) | const |
Return a std::string representation of this gum::ParseError.
|
mutable |
The code of this gum::ParseError, default is "".
Definition at line 155 of file errorsContainer.h.
Referenced by ParseError().
| Idx gum::ParseError::column |
The column of this gum::ParseError, default is 0.
Definition at line 146 of file errorsContainer.h.
| std::string gum::ParseError::filename |
The file of this gum::ParseError, default is "".
Definition at line 152 of file errorsContainer.h.
Referenced by ParseError(), and ParseError().
| bool gum::ParseError::is_error |
If false, this gum::ParseError is a warning.
Definition at line 140 of file errorsContainer.h.
Referenced by ParseError(), ParseError(), ParseError(), and gum::prm::o3prm::O3prmReader< GUM_SCALAR >::showElegantErrors().
| Idx gum::ParseError::line |
The line of this gum::ParseError.
Definition at line 143 of file errorsContainer.h.
Referenced by ParseError(), ParseError(), and ParseError().
| std::string gum::ParseError::msg |
The gum::ParseError message.
Definition at line 149 of file errorsContainer.h.
Referenced by ParseError(), ParseError(), and ParseError().