2024-03-21 17:33:47 +00:00
|
|
|
#ifndef EAX_EXCEPTION_INCLUDED
|
|
|
|
|
#define EAX_EXCEPTION_INCLUDED
|
|
|
|
|
|
|
|
|
|
#include <stdexcept>
|
|
|
|
|
#include <string>
|
2024-06-30 14:35:57 -05:00
|
|
|
#include <string_view>
|
2024-03-21 17:33:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class EaxException : public std::runtime_error {
|
2024-06-30 14:35:57 -05:00
|
|
|
static std::string make_message(std::string_view context, std::string_view message);
|
2024-03-21 17:33:47 +00:00
|
|
|
|
|
|
|
|
public:
|
2024-06-30 14:35:57 -05:00
|
|
|
EaxException() = delete;
|
|
|
|
|
EaxException(const EaxException&) = default;
|
|
|
|
|
EaxException(EaxException&&) = default;
|
|
|
|
|
EaxException(std::string_view context, std::string_view message);
|
2024-03-21 17:33:47 +00:00
|
|
|
~EaxException() override;
|
|
|
|
|
|
2024-06-30 14:35:57 -05:00
|
|
|
auto operator=(const EaxException&) -> EaxException& = default;
|
|
|
|
|
auto operator=(EaxException&&) -> EaxException& = default;
|
|
|
|
|
};
|
2024-03-21 17:33:47 +00:00
|
|
|
|
2024-06-30 14:35:57 -05:00
|
|
|
#endif /* EAX_EXCEPTION_INCLUDED */
|