FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTdebugexceptionhandler.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 FMTdebugexceptionhandler_H_INCLUDED
9#define FMTdebugexceptionhandler_H_INCLUDED
11#include <string>
12
13
14namespace Exception
15{
16 // DocString: FMTdebugexceptionhandler
22 {
23 // DocString: FMTdebugexceptionhandler::serialize
27 friend class boost::serialization::access;
28 template<class Archive>
29 void serialize(Archive& ar, const unsigned int version)
30 {
31 ar & boost::serialization::make_nvp("FMTexceptionhandler", boost::serialization::base_object<FMTexceptionhandler>(*this));
32 }
33 public:
34 // DocString: FMTdebugexceptionhandler()
39 // DocString: ~FMTdebugexceptionhandler()
44 // DocString: FMTdebugexceptionhandler::raise
49 FMTexception raise(FMTexc lexception, std::string text,
50 const std::string& method, const int& line, const std::string& file,
51 Core::FMTsection lsection = Core::FMTsection::Empty, bool throwit = true) override;
52 #if defined FMTWITHGDAL
53 // DocString: FMTdebugexceptionhandler::getCPLdata
59 // DocString: FMTdebugexceptionhandler::handelCPLerror
64 void handelCPLerror(int eErrClass, int nError, const char * pszErrorMsg) override;
65 #endif
66 };
67
68}
69
70BOOST_CLASS_EXPORT_KEY(Exception::FMTdebugexceptionhandler)
71
72#endif
73
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTdebugexceptionhandler.hpp:22
FMTexceptionhandler * getCPLdata() override
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
void handelCPLerror(int eErrClass, int nError, const char *pszErrorMsg) override
Definition: FMTexception.hpp:134
Definition: FMTexceptionhandler.hpp:32
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