mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +00:00
23 lines
500 B
C++
23 lines
500 B
C++
#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 override;
|
|
};
|