MUQ  0.4.3
Exceptions.h
Go to the documentation of this file.
1 #ifndef MUQEXCEPTIONS_H
2 #define MUQEXCEPTIONS_H
3 
4 #include <stdexcept>
5 #include <string>
6 
7 namespace muq
8 {
9 
21  class NotImplementedError : public std::logic_error
22  {
23  public:
24  NotImplementedError(std::string const& message) : std::logic_error(message){};
25 
26  };
27 
36  class NotRegisteredError : public std::logic_error
37  {
38  public:
39  NotRegisteredError(std::string const& message) : std::logic_error(message){};
40  };
41 
47  class ExternalLibraryError : public std::logic_error
48  {
49  public:
50  ExternalLibraryError(std::string const& message) : std::logic_error(message){};
51  };
52 
57  class WrongSizeError : public std::length_error
58  {
59  public:
60  WrongSizeError(std::string const& message) : std::length_error(message){};
61  };
62 
63 
64 };
65 
66 
67 
68 #endif // #ifndef MUQEXCEPTIONS
A MUQ dependency has failed.
Definition: Exceptions.h:48
ExternalLibraryError(std::string const &message)
Definition: Exceptions.h:50
Class for virtual base functions that are not implemented.
Definition: Exceptions.h:22
NotImplementedError(std::string const &message)
Definition: Exceptions.h:24
Used when a child class has not been registered with the factory method.
Definition: Exceptions.h:37
NotRegisteredError(std::string const &message)
Definition: Exceptions.h:39
Exception to throw when matrices, vectors, or arrays are the wrong size.
Definition: Exceptions.h:58
WrongSizeError(std::string const &message)
Definition: Exceptions.h:60