FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTerror.hpp
Go to the documentation of this file.
1/*
2Copyright (c) 2019 Gouvernement du Québec
3
4SPDX-License-Identifier: LiLiQ-R-1.1
5License-Filename: LICENSES/EN/LiLiQ-R11unicode.txt
6*/
7
8#ifndef FMTerror_H_INCLUDED
9#define FMTerror_H_INCLUDED
10
11#include "FMTexception.hpp"
12#include <string>
13#include <boost/serialization/serialization.hpp>
14
15#if defined FMTWITHOSI
16 class CoinError;
17#endif
18
19#include <boost/graph/exception.hpp>
20#include <boost/serialization/nvp.hpp>
21
22
23namespace Exception
24 {
25 // DocString: FMTerror
32 {
33 // DocString: FMTerror::serialize
37 friend class boost::serialization::access;
38 template<class Archive>
39 void serialize(Archive& ar, const unsigned int version)
40 {
41 ar & boost::serialization::make_nvp("exception", boost::serialization::base_object<FMTexception>(*this));
42 }
43 public:
44 // DocString: ~FMTerror()
48 ~FMTerror() = default;
49 // DocString: FMTerror::operator=
53 FMTerror& operator=(const FMTerror&) = default;
54 // DocString: FMTerror()
59 // DocString: FMTerror(const FMTexception&)
64 // DocString: FMTerror(const FMTexc,const std::string)
68 FMTerror(const FMTexc lexception, const std::string message);
69 // DocString: FMTerror(const FMTexc,const Core::FMTsection,const std::string)
73 FMTerror(const FMTexc lexception, const Core::FMTsection lsection, const std::string message);
74 // DocString: FMTerror(const FMTexc,const Core::FMTsection,const std::string,const std::string&,const std::string&,const int&)
79 FMTerror(const FMTexc lexception,const Core::FMTsection lsection, const std::string message,
80 const std::string& lmethod, const std::string& lfile, const int& lline);
81 // DocString: FMTerror(const FMTexc,const std::string,const std::string&,const std::string&,const int&)
86 FMTerror(const FMTexc lexception, const std::string message,
87 const std::string& lmethod, const std::string& lfile, const int& lline);
88 #if defined FMTWITHOSI
89 // DocString: FMTerror(const CoinError&)
93 FMTerror(const CoinError& coinexception);
94 #endif
95 // DocString: FMTerror(const boost::bad_graph&)
99 FMTerror(const boost::bad_graph& boostexception);
100
101 };
102 }
103#endif
104
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTerror.hpp:32
FMTerror(const FMTexc lexception, const std::string message, const std::string &lmethod, const std::string &lfile, const int &lline)
FMTerror(const boost::bad_graph &boostexception)
FMTerror(const FMTexc lexception, const Core::FMTsection lsection, const std::string message)
FMTerror & operator=(const FMTerror &)=default
FMTerror(const FMTexc lexception, const std::string message)
FMTerror(const FMTexc lexception, const Core::FMTsection lsection, const std::string message, const std::string &lmethod, const std::string &lfile, const int &lline)
FMTerror(const CoinError &coinexception)
FMTerror(const FMTexception &rhs)
Definition: FMTexception.hpp:134
FMTsection
Definition: FMTutility.hpp:23
Namespace for exceptions and exceptions handling (warnings and errors) thrown by FMT and all exceptio...
Definition: FMTcplhandler.hpp:16
FMTexc
Definition: FMTexception.hpp:42