8#ifndef FMTerror_Hm_included
9#define FMTerror_Hm_included
13#include <boost/serialization/serialization.hpp>
19#include <boost/graph/exception.hpp>
20#include <boost/serialization/nvp.hpp>
21#include <boost/serialization/base_object.hpp>
64 const std::string& p_method,
const std::string& p_file,
const int& p_line,
65 const std::string& p_FrenchDescription,
const std::string& p_EnglishDescription);
74 friend class boost::serialization::access;
75 template<
class Archive>
76 void serialize(Archive& ar,
const unsigned int version)
78 ar& boost::serialization::make_nvp(
"exception", boost::serialization::base_object<FMTException>(*
this));
#define FMTEXPORT
Definition: FMTutility.h:125
Exception class derived from FMTException for errors thrown in FMT.
Definition: FMTError.h:32
FMTError(FMTexc p_exception, FMTlev p_level, Core::FMTsection p_section, const std::string &p_message, const std::string &p_method, const std::string &p_file, const int &p_line, const std::string &p_FrenchDescription, const std::string &p_EnglishDescription)
Construct a FMTError from an exception type, a section, a message and the location where it occurred.
FMTError()
Default constructor for FMTError.
~FMTError()=default
Default destructor for FMTError.
FMTError & operator=(const FMTError &)=default
Default copy assignment operator for FMTError.
Base exception class for FMT holding the type, section and message of a given exception.
Definition: FMTException.h:140
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
FMTexc
Enumerator describing the exceptions thrown by FMT.
Definition: FMTException.h:45
FMTlev
Enumerator describing the kind of exception thrown by FMT.
Definition: FMTException.h:32