FMT 1.2.0
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTUnhandledError.h
Go to the documentation of this file.
1#ifndef FMTUnhandledError_included
2#define FMTUnhandledError_included
3
4#include "FMTError.h"
5#include "FMTutility.h"
6#include "FMTException.h"
7#include <string>
8#include <exception>
9#include <boost/serialization/export.hpp>
10
11namespace Exception
12 {
14 {
15 public:
16 // DocString: FMTUnhandledError(Core::FMTsection,const std::string&,const std::string&,const std::string&,int)
26 const std::string& p_message,
27 const std::string& p_method,
28 const std::string& p_file,
29 int p_line);
30 // DocString: FMTUnhandledError(const std::exception&)
35 FMTUnhandledError(const std::exception& p_stdException);
36 private:
37 // DocString: FMTUnhandledError::serialize
44 friend class boost::serialization::access;
45
46 template<class Archive>
47 void serialize(Archive& ar, const unsigned int version)
48 {
49 ar & boost::serialization::make_nvp(
50 "parent_exception",
51 boost::serialization::base_object<FMTError>(*this));
52 }
53 };
54 }
55
56#endif
#define FMTEXPORT
Definition: FMTutility.h:125
Exception class derived from FMTException for errors thrown in FMT.
Definition: FMTError.h:32
Definition: FMTUnhandledError.h:14
FMTUnhandledError(Core::FMTsection p_section, const std::string &p_message, const std::string &p_method, const std::string &p_file, int p_line)
Construct a FMTUnhandledError from a section, a message and the location where it occurred.
FMTUnhandledError(const std::exception &p_stdException)
Construct a FMTUnhandledError from a section, a message and the location where it occurred.
FMTsection
Enumerator describing the sections of a Woodstock model.
Definition: FMTutility.h:32
Namespace for exceptions and exceptions handling (warnings and errors) thrown by FMT and all exceptio...
Definition: FMTAggregateRedefinition.h:11