DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
formatexception.h
Go to the documentation of this file.
1 #ifndef FORMATEXCEPTION_H
2 #define FORMATEXCEPTION_H
3 
4 #include <stdexcept>
5 #include <formats_globals.h>
6 
7 namespace displace {
8 namespace formats {
9 
10 class FORMATSSHARED_EXPORT FormatException : public std::runtime_error {
11 public:
12  explicit FormatException(const char *msg)
13  : std::runtime_error(msg) {}
14 
15  template <typename T>
16  explicit FormatException(T&& mm)
17  : std::runtime_error(std::forward<T>(mm)) {}
18 };
19 
20 }
21 }
22 
23 #endif // FORMATEXCEPTION_H
Definition: decisiontreemanager.h:13
FormatException(const char *msg)
Definition: formatexception.h:12
FormatException(T &&mm)
Definition: formatexception.h:16
Definition: pathshop.cpp:8
#define FORMATSSHARED_EXPORT
Definition: formats_globals.h:24
Definition: formatexception.h:10