1 #ifndef RADIX_THROWABLES_HPP
2 #define RADIX_THROWABLES_HPP
10 class Error :
public std::exception {
15 Error(
const std::string &s,
const std::string &m) : src(s), msg(m) {}
16 Error(
const std::string &s,
const char *m) : src(s), msg(m){}
17 Error(
const char *s,
const std::string &m) : src(s), msg(m) {}
18 Error(
const char *s,
const char *m) : src(s), msg(m) {}
20 const char*
source() const noexcept {
23 const char*
what() const noexcept {
Definition: GameController.hpp:7
Error(const std::string &s, const std::string &m)
Definition: Throwables.hpp:15
Error(const char *s, const char *m)
Definition: Throwables.hpp:18
const char * source() const noexcept
Definition: Throwables.hpp:20
Error(const std::string &s, const char *m)
Definition: Throwables.hpp:16
Definition: Throwables.hpp:10
const char * what() const noexcept
Definition: Throwables.hpp:23
const std::string msg
Definition: Throwables.hpp:12
Error(const char *s, const std::string &m)
Definition: Throwables.hpp:17
const std::string src
Definition: Throwables.hpp:12