fsc_except.hpp
1 // Author: Mario S. Könz <mskoenz@gmx.net>
2 // Date: 19.08.2015 17:49:56 CEST
3 // File: fsc_except.hpp
4 
5 #ifndef FSC_FSC_EXCEPT_HEADER
6 #define FSC_FSC_EXCEPT_HEADER
7 
8 #include <stdexcept>
10 namespace fsc {
11  class cat_on_your_keyboard_error: public std::runtime_error {
12  using base = std::runtime_error;
13  public:
14  explicit cat_on_your_keyboard_error(const std::string& what_arg): base(what_arg) {
15  }
16  };
17  class rethink_your_live_choices_error: public std::runtime_error {
18  using base = std::runtime_error;
19  public:
20  explicit rethink_your_live_choices_error(const std::string& what_arg): base(what_arg) {
21  }
22  };
23  class maybe_your_only_purpose_in_live_is_to_serve_as_a_bad_example_error: public std::runtime_error {
24  using base = std::runtime_error;
25  public:
26  explicit maybe_your_only_purpose_in_live_is_to_serve_as_a_bad_example_error(const std::string& what_arg): base(what_arg) {
27  }
28  };
29  class O__o: public std::runtime_error {
30  using base = std::runtime_error;
31  public:
32  explicit O__o(const std::string& what_arg): base(what_arg) {
33  }
34  };
35 }//end namespace fsc
37 
38 #endif //FSC_FSC_EXCEPT_HEADER