2017-07-02 15:18:59 +00:00
|
|
|
#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;
|
2017-07-07 09:57:38 +00:00
|
|
|
const char* error() const noexcept;
|
2017-07-02 15:18:59 +00:00
|
|
|
private:
|
|
|
|
std::string what_;
|
|
|
|
std::string module_;
|
2017-07-07 09:57:38 +00:00
|
|
|
std::string error_;
|
2017-07-02 15:18:59 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|