mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-23 03:05:27 +00:00
25 lines
466 B
C++
25 lines
466 B
C++
#pragma once
|
|
#include <exception>
|
|
#include <string>
|
|
|
|
namespace fnd
|
|
{
|
|
class Exception : public std::exception
|
|
{
|
|
public:
|
|
Exception() noexcept;
|
|
Exception(const std::string& what) noexcept;
|
|
Exception(const std::string& module, const std::string& what) noexcept;
|
|
|
|
const char* what() const noexcept;
|
|
const char* module() const noexcept;
|
|
const char* error() const noexcept;
|
|
private:
|
|
std::string what_;
|
|
std::string module_;
|
|
std::string error_;
|
|
};
|
|
}
|
|
|
|
|