FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTfreeexceptionhandler.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 FMTfreeexceptionhandler_H_INCLUDED
9#define FMTfreeexceptionhandler_H_INCLUDED
10
12#include <boost/serialization/serialization.hpp>
13#include <boost/serialization/nvp.hpp>
14#include <string>
15
16namespace Exception
17{
18// DocString: FMTfreeexceptionhandler
25{
26 // DocString: FMTfreeexceptionhandler::serialize
30 friend class boost::serialization::access;
31 template<class Archive>
32 void serialize(Archive& ar, const unsigned int version)
33 {
34 ar & boost::serialization::make_nvp("FMTexceptionhandler", boost::serialization::base_object<FMTexceptionhandler>(*this));
35 }
36public:
37 // DocString: FMTfreeexceptionhandler()
42 // DocString: ~FMTfreeexceptionhandler()
47 // DocString: FMTfreeexceptionhandler::raise
52 FMTexception raise(FMTexc lexception, std::string text,
53 const std::string& method, const int& line, const std::string& file,
54 Core::FMTsection lsection = Core::FMTsection::Empty, bool throwit = true) override;
55#if defined FMTWITHGDAL
56 // DocString: FMTfreeexceptionhandler::getCPLdata
62 // DocString: FMTfreeexceptionhandler::handelCPLerror
67 void handelCPLerror(int eErrClass, int nError, const char * pszErrorMsg) override;
68#endif
69};
70}
71
72BOOST_CLASS_EXPORT_KEY(Exception::FMTfreeexceptionhandler)
73
74#endif
75
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTexception.hpp:134
Definition: FMTexceptionhandler.hpp:32
Definition: FMTfreeexceptionhandler.hpp:25
FMTexception raise(FMTexc lexception, std::string text, const std::string &method, const int &line, const std::string &file, Core::FMTsection lsection=Core::FMTsection::Empty, bool throwit=true) override
FMTexceptionhandler * getCPLdata() override
void handelCPLerror(int eErrClass, int nError, const char *pszErrorMsg) override
FMTsection
Definition: FMTutility.hpp:23
@ Empty
Definition: FMTutility.hpp:35
Namespace for exceptions and exceptions handling (warnings and errors) thrown by FMT and all exceptio...
Definition: FMTcplhandler.hpp:16
FMTexc
Definition: FMTexception.hpp:42