FMT 1.2.0
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTCoinError.h
Go to the documentation of this file.
1#ifndef FMTCoinError_included
2#define FMTCoinError_included
3
4#include "FMTError.h"
5#include "FMTutility.h"
6#include "FMTException.h"
7#include <string>
8#include <boost/serialization/export.hpp>
9#if defined FMTWITHOSI
10 class CoinError;
11#endif
12
13namespace Exception
14 {
16 {
17 public:
18 // DocString: FMTCoinError(Core::FMTsection,const std::string&,const std::string&,const std::string&,int)
28 const std::string& p_message,
29 const std::string& p_method,
30 const std::string& p_file,
31 int p_line);
32
33 #if defined FMTWITHOSI
34 // DocString: FMTError(const CoinError&)
39 FMTCoinError(const CoinError& p_coinException);
40 #endif
41 private:
42 // DocString: FMTCoinError::serialize
49 friend class boost::serialization::access;
50
51 template<class Archive>
52 void serialize(Archive& ar, const unsigned int version)
53 {
54 ar & boost::serialization::make_nvp(
55 "parent_exception",
56 boost::serialization::base_object<FMTError>(*this));
57 }
58 };
59 }
60
61#endif
#define FMTEXPORT
Definition: FMTutility.h:125
Definition: FMTCoinError.h:16
FMTCoinError(Core::FMTsection p_section, const std::string &p_message, const std::string &p_method, const std::string &p_file, int p_line)
Construct a FMTCoinError from a section, a message and the location where it occurred.
FMTCoinError(const CoinError &p_coinException)
Construct a FMTError from a CoinError.
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