mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 15:43:45 +00:00
23 lines
668 B
C++
23 lines
668 B
C++
#ifndef EAX_EXCEPTION_INCLUDED
|
|
#define EAX_EXCEPTION_INCLUDED
|
|
|
|
#include <stdexcept>
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
|
|
class EaxException : public std::runtime_error {
|
|
static std::string make_message(std::string_view context, std::string_view message);
|
|
|
|
public:
|
|
EaxException() = delete;
|
|
EaxException(const EaxException&) = default;
|
|
EaxException(EaxException&&) = default;
|
|
EaxException(std::string_view context, std::string_view message);
|
|
~EaxException() override;
|
|
|
|
auto operator=(const EaxException&) -> EaxException& = default;
|
|
auto operator=(EaxException&&) -> EaxException& = default;
|
|
};
|
|
|
|
#endif /* EAX_EXCEPTION_INCLUDED */
|