mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-13 00:08:26 -05:00
Extract commonly used Parser code to new Parser component
This commit is contained in:
22
src/Parser/Parsing/ParsingException.h
Normal file
22
src/Parser/Parsing/ParsingException.h
Normal file
@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <exception>
|
||||
#include <string>
|
||||
|
||||
#include "TokenPos.h"
|
||||
#include "Utils/ClassUtils.h"
|
||||
|
||||
class ParsingException final : std::exception
|
||||
{
|
||||
TokenPos m_pos;
|
||||
std::string m_message;
|
||||
std::string m_full_message;
|
||||
|
||||
public:
|
||||
ParsingException(TokenPos position, std::string message);
|
||||
|
||||
_NODISCARD TokenPos Position() const;
|
||||
_NODISCARD const std::string& Message() const;
|
||||
_NODISCARD std::string FullMessage() const;
|
||||
_NODISCARD char const* what() const noexcept override;
|
||||
};
|
Reference in New Issue
Block a user