54 true,
"Exception : " +
narrow(std::wstring(msg)),
narrow(filename), 0, 0));
69 const std::string& filename,
77 const std::string& filename,
85 const std::string& filename) {
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void addWarning(const std::string &msg, const std::string &filename, Idx line, Idx col)
Adds a warning.
Size count() const
Returns the number of errors and warnings.
Size error_count
Number of errors detected.
void Exception(const std::wstring &filename, const wchar_t *msg)
For adding exceptions.
std::vector< ParseError > errors
The list of gum::ParseError contained in this gum::ErrorsContainer.
This class is used to represent parsing errors for the different parser implemented in aGrUM...
void syntheticResults(std::ostream &o) const
Print errors on output stream.
void add(ParseError error)
Add an error object to the container.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
bool is_error
If false, this gum::ParseError is a warning.
std::string narrow(const std::wstring &str)
Cast a std::wstring into a std::string.
void Error(const std::wstring &filename, Idx line, Idx col, const wchar_t *msg)
For adding errors.
Size Idx
Type for indexes.
ParseError error(Idx i) const
Returns the i-th error.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
void Warning(const std::wstring &filename, Idx line, Idx col, const wchar_t *msg)
For adding warnings.
void addError(const std::string &msg, const std::string &filename, Idx line, Idx col)
Adds an error.
void addException(const std::string &msg, const std::string &filename)
Add an exception.