mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 01:59:33 +08:00
27 lines
600 B
C++
27 lines
600 B
C++
#pragma once
|
|
|
|
#include <exception>
|
|
#include <string>
|
|
|
|
namespace json
|
|
{
|
|
class exception : public std::exception
|
|
{
|
|
public:
|
|
exception() = default;
|
|
exception(const std::string &msg);
|
|
|
|
exception(const exception &) = default;
|
|
exception &operator=(const exception &) = default;
|
|
exception(exception &&) = default;
|
|
exception &operator=(exception &&) = default;
|
|
|
|
virtual ~exception() noexcept override = default;
|
|
|
|
virtual const char *what() const noexcept override;
|
|
|
|
private:
|
|
std::string m_msg;
|
|
};
|
|
|
|
} // namespace json
|