make doxygen output more focused
[mussa.git] / mussa_exceptions.hpp
1 #ifndef _MUSSA_EXCEPTIONS_H_
2 #define _MUSSA_EXCEPTIONS_H_
3 #include <stdexcept>
4
5 //! base mussa exception
6 class mussa_error : public std::runtime_error
7 {
8 public:
9   explicit mussa_error(const std::string& msg): std::runtime_error(msg) {};
10 };
11
12 //! Error processing commandline arguments
13 class cmdline_error : public mussa_error
14 {
15 public:
16   explicit cmdline_error(const std::string& msg): mussa_error(msg) {};
17 };
18
19 //! Error loading information
20 class mussa_load_error : public mussa_error
21 {
22 public:
23   explicit mussa_load_error(const std::string& msg) : 
24     mussa_error(msg) {};
25 };
26
27 //! failure running analysis
28 class mussa_analysis_error : public mussa_error
29 {
30 public:
31   explicit mussa_analysis_error(const std::string& msg) : 
32     mussa_error(msg) {};
33 };
34
35 class motif_normalize_error : public mussa_error
36 {
37 public:
38   explicit motif_normalize_error(const std::string& msg) : 
39     mussa_error(msg) {};
40 };
41 #endif