FMT 1.2.0
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTInvalidConstraint.h
Go to the documentation of this file.
1#ifndef FMTInvalidConstraint_included
2#define FMTInvalidConstraint_included
3
4#include "FMTError.h"
5#include "FMTutility.h"
6#include "FMTException.h"
7#include <string>
8#include <boost/serialization/export.hpp>
9
10namespace Exception
11 {
13 {
14 public:
15 // DocString: FMTInvalidConstraint(Core::FMTsection,const std::string&,const std::string&,const std::string&,int)
25 const std::string& p_message,
26 const std::string& p_method,
27 const std::string& p_file,
28 int p_line);
29
30 private:
31 // DocString: FMTInvalidConstraint::serialize
38 friend class boost::serialization::access;
39
40 template<class Archive>
41 void serialize(Archive& ar, const unsigned int version)
42 {
43 ar & boost::serialization::make_nvp(
44 "parent_exception",
45 boost::serialization::base_object<FMTError>(*this));
46 }
47 };
48 }
49
50#endif
#define FMTEXPORT
Definition: FMTutility.h:125
Exception class derived from FMTException for errors thrown in FMT.
Definition: FMTError.h:32
Definition: FMTInvalidConstraint.h:13
FMTInvalidConstraint(Core::FMTsection p_section, const std::string &p_message, const std::string &p_method, const std::string &p_file, int p_line)
Construct a FMTInvalidConstraint 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