ssp/include/ss/exception.hpp
red0124 69875c238e
Resolve clang-tidy warnings (#48)
* Resolve clang-tidy warnings, update single_header_generator.py

* Update single header test, resolve additional clang-tidy warnings
2024-03-12 18:31:24 +01:00

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 */