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

#include <FMTInvalidOverview.h>

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

Public Member Functions

 FMTInvalidOverview (Core::FMTsection p_section, const std::string &p_message, const std::string &p_method, const std::string &p_file, int p_line)
 Construct a FMTInvalidOverview from a section, a message and the location where it occurred.
 
- Public Member Functions inherited from Exception::FMTError
 ~FMTError ()=default
 Default destructor for FMTError.
 
FMTErroroperator= (const FMTError &)=default
 Default copy assignment operator for FMTError.
 
 FMTError ()
 Default constructor for FMTError.
 
 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.
 
- Public Member Functions inherited from Exception::FMTException
 FMTException ()
 Default constructor for FMTException.
 
virtual ~FMTException ()=default
 Default virtual destructor for FMTException.
 
 FMTException (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 FMTException from an exception type, a section, a message and the location where it occurred.
 
 FMTException (const FMTException &rhs)=default
 Default copy constructor for FMTException.
 
FMTExceptionoperator= (const FMTException &rhs)=default
 Default copy assignment operator for FMTException.
 
FMTexc getType () const
 Return the type of exception held by this FMTException.
 
Core::FMTsection getSection () const
 Return the section in which the exception occurred.
 
const char * what () const noexcept override
 Override the what function of the base exception class returning the message string.
 
bool hold () const
 Return the value of the holdup member.
 
void setHold (bool side)
 Set the value of the holdup member.
 
std::string getMethod () const
 Return the method in which the exception occurred.
 
std::string getFile () const
 Return the source file in which the exception occurred.
 
int getLine () const
 Return the source file line in which the exception occurred.
 
const std::string & getDescription (bool p_french=false) const
 Return the description of the exception thrown.
 
std::string getSrcInfo () const
 Return a formatted string for the location of the exception.
 
const std::string & getMessage () const
 Return the message of the exception.
 
FMTlev getLevel () const
 Return the level of the exception.
 
bool isFatal () const
 return true if it is fatal
 
void setIgnore ()
 set a ignore message to the exception and turn the level to warning
 
void setPrintLevel (int p_level)
 set the level of print and change the message
 

Friends

class boost::serialization::access
 Serialize the FMTInvalidOverview through its base FMTError for multiprocessing across multiple cpus (pickle in Python).
 

Constructor & Destructor Documentation

◆ FMTInvalidOverview()

Exception::FMTInvalidOverview::FMTInvalidOverview ( Core::FMTsection  p_section,
const std::string &  p_message,
const std::string &  p_method,
const std::string &  p_file,
int  p_line 
)

Construct a FMTInvalidOverview from a section, a message and the location where it occurred.

Parameters
[in]p_sectionthe section in which the error occurred.
[in]p_messagethe message of the error.
[in]p_methodthe method where the error occurred.
[in]p_filethe file where the error occurred.
[in]p_linethe line where the error occurred.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialize the FMTInvalidOverview through its base FMTError for multiprocessing across multiple cpus (pickle in Python).

Template Parameters
Archivethe archive type.
Parameters
[in,out]arthe archive to serialize to or from.
[in]versionthe serialization version.

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