FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
Exception::FMTerror Class Reference

#include <FMTerror.hpp>

Inheritance diagram for Exception::FMTerror:
[legend]
Collaboration diagram for Exception::FMTerror:
[legend]

Public Member Functions

 ~FMTerror ()=default
 
FMTerroroperator= (const FMTerror &)=default
 
 FMTerror ()
 
 FMTerror (const FMTexception &rhs)
 
 FMTerror (const FMTexc lexception, const std::string message)
 
 FMTerror (const FMTexc lexception, const Core::FMTsection lsection, const std::string message)
 
 FMTerror (const FMTexc lexception, const Core::FMTsection lsection, const std::string message, const std::string &lmethod, const std::string &lfile, const int &lline)
 
 FMTerror (const FMTexc lexception, const std::string message, const std::string &lmethod, const std::string &lfile, const int &lline)
 
 FMTerror (const CoinError &coinexception)
 
 FMTerror (const boost::bad_graph &boostexception)
 
- Public Member Functions inherited from Exception::FMTexception
 FMTexception ()
 
virtual ~FMTexception ()=default
 
 FMTexception (const std::exception &baseexception)
 
 FMTexception (const FMTexc lexception, const std::string message)
 
 FMTexception (const FMTexc lexception, Core::FMTsection lsection, const std::string message)
 
 FMTexception (const FMTexc lexception, Core::FMTsection lsection, const std::string message, const std::string &lmethod, const std::string &lfile, const int &lline)
 
 FMTexception (const FMTexc lexception, Core::FMTsection lsection, const std::string message, const std::string &lmethod)
 
 FMTexception (const FMTexc lexception, const std::string message, const std::string &lmethod, const std::string &lfile, const int &lline)
 
 FMTexception (const FMTexc lexception, const std::string message, const std::string &lmethod)
 
 FMTexception (const FMTexception &rhs)
 
FMTexceptionoperator= (const FMTexception &rhs)
 
FMTexc gettype () const
 
Core::FMTsection getsection () const
 
const char * what () const override throw ()
 
bool hold () const
 
void sethold (bool side)
 
std::string getmethod () const
 
std::string getfile () const
 
int getline () const
 
std::string getsrcinfo () const
 

Friends

class boost::serialization::access
 

Additional Inherited Members

- Protected Attributes inherited from Exception::FMTexception
bool holdup
 
std::string _msg
 Keeps the message string of the exception.
 
FMTexc exceptiontype
 Type of the exception thrown.
 
Core::FMTsection section
 Section in which the exception just happened.
 
std::string method
 Function where the exception just happened.
 
std::string file
 Source file where the exception just happened.
 
int line
 Source file line where the exception just happened.
 

Detailed Description

FMTerror is derived from the FMTexception base class. See FMTexception class for more information about the member data. Any error should throw in FMT.

Constructor & Destructor Documentation

◆ ~FMTerror()

Exception::FMTerror::~FMTerror ( )
default

Default destructor for FMTerror.

◆ FMTerror() [1/8]

Exception::FMTerror::FMTerror ( )

Default constructor for FMTerror.

◆ FMTerror() [2/8]

Exception::FMTerror::FMTerror ( const FMTexception rhs)

Default copy constructor for FMTerror.

◆ FMTerror() [3/8]

Exception::FMTerror::FMTerror ( const FMTexc  lexception,
const std::string  message 
)

Constructor for FMTerror taking a exception type and message string as arguments.

◆ FMTerror() [4/8]

Exception::FMTerror::FMTerror ( const FMTexc  lexception,
const Core::FMTsection  lsection,
const std::string  message 
)

Constructor for FMTerror taking a exception type, section in which the error occur and message string as arguments.

◆ FMTerror() [5/8]

Exception::FMTerror::FMTerror ( const FMTexc  lexception,
const Core::FMTsection  lsection,
const std::string  message,
const std::string &  lmethod,
const std::string &  lfile,
const int &  lline 
)

Constructor for FMTerror taking a exception type, section in which the error occur and message string as arguments and the location where the exception occured (method/file/line).

◆ FMTerror() [6/8]

Exception::FMTerror::FMTerror ( const FMTexc  lexception,
const std::string  message,
const std::string &  lmethod,
const std::string &  lfile,
const int &  lline 
)

Constructor for FMTerror taking a exception type, section in which the error occur and message string as arguments and the location where the exception occured (method/file/line).

◆ FMTerror() [7/8]

Exception::FMTerror::FMTerror ( const CoinError &  coinexception)

Constructor for FMTerror from a CoinError.

◆ FMTerror() [8/8]

Exception::FMTerror::FMTerror ( const boost::bad_graph &  boostexception)

Constructor for FMTerror from a boost::bad_graph.

Member Function Documentation

◆ operator=()

FMTerror & Exception::FMTerror::operator= ( const FMTerror )
default

Default assignment operator for FMTerror.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialize function is for serialization, used to do multiprocessing across multiple cpus (pickle in Pyhton)


The documentation for this class was generated from the following file: