17 #ifndef COM_BORA_SOFTWARE__BALAU_EXCEPTION__PARSING_EXCEPTIONS 18 #define COM_BORA_SOFTWARE__BALAU_EXCEPTION__PARSING_EXCEPTIONS 33 const std::string & st,
34 const std::string & text,
37 , codeSpan(codeSpan_) {}
44 template <
typename AllocatorT>
46 return toString<AllocatorT>(e.
message,
" - ", e.codeSpan);
55 #endif // COM_BORA_SOFTWARE__BALAU_EXCEPTION__PARSING_EXCEPTIONS Thrown when a parser incurs invalid syntax.
Definition: ParsingExceptions.hpp:28
bool operator==(const BalauException &lhs, const BalauException &rhs)
Base class comparison function for Balau exceptions.
Definition: BalauException.hpp:112
All exception classes.
Definition: BalauException.hpp:50
Information on the span of some source code text.
Definition: CodeSpan.hpp:91
Balau::U8String< AllocatorT > toString(const BalauException &e)
Base class toString<AllocatorT> function for Balau exceptions.
Definition: BalauException.hpp:122
A position in a piece of multi-line text.
const std::string message
The message.
Definition: BalauException.hpp:59
Base Balau exception classes.
std::basic_string< char, std::char_traits< char >, AllocatorT > U8String
UTF-8 string type with selectable allocator.
Definition: ToStringA.hpp:41
Base class of all Balau exceptions.
Definition: BalauException.hpp:55