1#ifndef FMTExceptionFactory_included
2#define FMTExceptionFactory_included
4#include <boost/graph/exception.hpp>
53 static std::unique_ptr<FMTException>
create(
56 const std::string& p_message,
57 const std::string& p_method,
58 const std::string& p_file,
72 const CoinError& p_CoinException);
85 const boost::bad_graph& p_exception);
97 static std::unique_ptr<FMTException> createSeException(
114 const std::exception& p_exception);
Factory class used to create FMT exception objects.
Definition: FMTExceptionFactory.h:33
static std::unique_ptr< FMTException > createCoinException(const CoinError &p_CoinException)
Creates an FMTCoinError exception from a COIN-OR exception.
static std::unique_ptr< FMTException > create(FMTexc p_exception, Core::FMTsection p_section, const std::string &p_message, const std::string &p_method, const std::string &p_file, int p_line)
Creates a concrete FMTException instance corresponding to the specified FMT exception type.
static std::unique_ptr< FMTException > createUnhandledException(const std::exception &p_exception)
Creates an FMTUnhandledError exception from a standard exception.
static std::unique_ptr< FMTException > createBoostGraphException(const boost::bad_graph &p_exception)
Creates an FMTBoostGraphError exception from a Boost Graph exception.
Exception representing a structured exception (SE) caught on Windows.
Definition: FMTSeException.h:27
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