ParsingError.hpp¶
Header file for the ParsingError class.
-
namespace mqt
-
namespace debugger
-
class ParsingError : public std::runtime_error¶
- #include <ParsingError.hpp>
Represents an error that occurred during parsing.
Public Functions
-
explicit ParsingError(const std::string &msg)¶
Constructs a new ParsingError with the given message.
- Parameters:
msg – The error message.
-
ParsingError(size_t line, size_t column, std::string detail)¶
Constructs a new ParsingError with location information.
- Parameters:
line – The one-based line number, or 0 if unknown.
column – The one-based column number, or 0 if unknown.
detail – The error detail message.
-
ParsingError(size_t line, size_t column, std::string detail, const std::string &message)¶
Constructs a new ParsingError with location information and message.
- Parameters:
line – The one-based line number, or 0 if unknown.
column – The one-based column number, or 0 if unknown.
detail – The error detail message.
message – The formatted error message.
-
size_t line() const noexcept¶
Gets the line number of the error location, or 0 if unknown.
-
size_t column() const noexcept¶
Gets the column number of the error location, or 0 if unknown.
-
const std::string &detail() const noexcept¶
Gets the error detail message.
-
explicit ParsingError(const std::string &msg)¶
-
class ParsingError : public std::runtime_error¶
-
namespace debugger