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