Files
chaos/Chaos/Service/ChaosException.hpp
T
2026-07-20 02:56:39 +03:00

33 lines
550 B
C++

#ifndef CHAOS_SERVICE_CHAOSEXCEPTION_HPP
#define CHAOS_SERVICE_CHAOSEXCEPTION_HPP
#include <string>
#include <utility>
namespace Chaos::Service
{
class ChaosException
{
public:
ChaosException(std::string && message)
: Message_(std::move(message))
{ }
ChaosException(const std::string & message)
: Message_(message)
{ }
const std::string & GetMessage() const
{
return Message_;
}
private:
std::string Message_;
};
} // namespace Chaos::Service
#endif // CHAOS_SERVICE_CHAOSEXCEPTION_HPP