There can be only one (filename convention)
[mussa.git] / mussa_exceptions.hpp
1 #ifndef _MUSSA_EXCEPTIONS_H_
2 #define _MUSSA_EXCEPTIONS_H_
3 #include <stdexcept>
4
5 //! Error processing commandline arguments
6 class cmdline_error : public std::runtime_error
7 {
8 public:
9   explicit cmdline_error(const std::string& msg): std::runtime_error(msg) {};
10 };
11
12 //! Error loading information
13 class mussa_load_error : public std::runtime_error
14 {
15 public:
16   explicit mussa_load_error(const std::string& msg) : 
17     std::runtime_error(msg) {};
18 };
19
20 //! failure running analysis
21 class mussa_analysis_error : public std::runtime_error
22 {
23 public:
24   explicit mussa_analysis_error(const std::string& msg) : 
25     std::runtime_error(msg) {};
26 };
27 #endif