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