FMT 1.2.0
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTBoostGraphError.h
Go to the documentation of this file.
1#ifndef FMTBoostGraphError_included
2#define FMTBoostGraphError_included
3
4#include "FMTError.h"
5#include "FMTutility.h"
6#include "FMTException.h"
7#include <string>
8#include <boost/serialization/export.hpp>
9#include <boost/graph/exception.hpp>
10
11namespace Exception
12 {
14 {
15 public:
16 // DocString: FMTBoostGraphError(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
31 // DocString: FMTBoostGraphError(const boost::bad_graph&)
36 FMTBoostGraphError(const boost::bad_graph& p_GraphError);
37 private:
38 // DocString: FMTBoostGraphError::serialize
45 friend class boost::serialization::access;
46
47 template<class Archive>
48 void serialize(Archive& ar, const unsigned int version)
49 {
50 ar & boost::serialization::make_nvp(
51 "parent_exception",
52 boost::serialization::base_object<FMTError>(*this));
53 }
54 };
55 }
56
57#endif
#define FMTEXPORT
Definition: FMTutility.h:125
Definition: FMTBoostGraphError.h:14
FMTBoostGraphError(const boost::bad_graph &p_GraphError)
Construct a FMTBoostGraphError from a section, a message and the location where it occurred.
FMTBoostGraphError(Core::FMTsection p_section, const std::string &p_message, const std::string &p_method, const std::string &p_file, int p_line)
Construct a FMTBoostGraphError from a section, a message and the location where it occurred.
Exception class derived from FMTException for errors thrown in FMT.
Definition: FMTError.h:32
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