59 SyntaxError::SyntaxError(
const std::string& aMsg,
60 std::string aFilename,
63 const std::string& aType) :
64 IOError(aMsg, aType), noLine_(nol), noCol_(noc), filename_(
std::move(aFilename)) {
68 std::ostringstream error_stream;
69 error_stream <<
type_ <<
":" << std::endl;
70 error_stream << filename() <<
":" << line() <<
"," << col() <<
" : " <<
msg_;
71 what_ = error_stream.str();
75 GUM_NODISCARD INLINE Size SyntaxError::col()
const {
return noCol_; }
79 GUM_NODISCARD INLINE std::string SyntaxError::filename()
const {
return filename_; }
GUM_NODISCARD std::string errorCallStack() const
Returns the error call stack.
GUM_NODISCARD std::string errorContent() const
Returns the message content.
GUM_NODISCARD const char * what() const noexcept override
GUM_NODISCARD std::string errorType() const
Returns the error type.
Exception : input/output problem.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
aGrUM's inline/outline selection
gum is the global namespace for all aGrUM entities
Provides basic types used in aGrUM.