mirror of
https://github.com/red0124/ssp.git
synced 2025-04-20 10:37:57 +02:00
24 lines
361 B
C++
24 lines
361 B
C++
#pragma once
|
|
#include <exception>
|
|
#include <string>
|
|
|
|
namespace ss {
|
|
|
|
////////////////
|
|
// exception
|
|
////////////////
|
|
|
|
class exception : public std::exception {
|
|
std::string msg_;
|
|
|
|
public:
|
|
exception(std::string msg): msg_{std::move(msg)} {
|
|
}
|
|
|
|
char const* what() const noexcept override {
|
|
return msg_.c_str();
|
|
}
|
|
};
|
|
|
|
} /* namespace ss */
|