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