LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::LimaException Class Reference

The main LIMA exception class. More...

#include <common/LimaCommon.h>

Inheritance diagram for Lima::LimaException:
Lima::AccessByStringNotInitialized Lima::AccessByStringOutOfRange Lima::Common::FsaAccess::FsaNotSaved Lima::Common::XMLConfigurationFiles::XMLConfigurationFileException Lima::DocumentsReader::DocumentReaderException Lima::InvalidConfiguration Lima::LinguisticProcessing::LinguisticProcessingException Lima::MediaNotInitialized Lima::XMLException Lima::XmlReader::XmlReaderException

Public Member Functions

 LimaException (const char *message="")
 
 LimaException (const QString &message)
 
 LimaException (const std::string &message)
 
 LimaException (const LimaException &)=default
 
LimaException & operator= (const LimaException &e)=delete
 
virtual ~LimaException () throw () =default
 
virtual const char * what () const override throw ()
 

Protected Attributes

std::string m_reason
 

Detailed Description

The main LIMA exception class.

Throw this exception to signal a problem with a precise associated message.

Instead of directly throwing this exception, prefer using one of the LIMA_EXCEPTION macros to automatically include location information useful for debugging.

Definition at line 261 of file LimaCommon.h.

Constructor & Destructor Documentation

◆ LimaException() [1/4]

Lima::LimaException::LimaException ( const char *  message = "")
inlineexplicit

Definition at line 264 of file LimaCommon.h.

◆ LimaException() [2/4]

Lima::LimaException::LimaException ( const QString &  message)
inlineexplicit

Definition at line 268 of file LimaCommon.h.

◆ LimaException() [3/4]

Lima::LimaException::LimaException ( const std::string &  message)
inlineexplicit

Definition at line 272 of file LimaCommon.h.

◆ LimaException() [4/4]

Lima::LimaException::LimaException ( const LimaException &  )
default

◆ ~LimaException()

virtual Lima::LimaException::~LimaException ( )
throw (
)
virtualdefault

Member Function Documentation

◆ operator=()

LimaException & Lima::LimaException::operator= ( const LimaException &  e)
delete

◆ what()

virtual const char * Lima::LimaException::what ( ) const
throw (
)
inlineoverridevirtual

Definition at line 280 of file LimaCommon.h.

Member Data Documentation

◆ m_reason

std::string Lima::LimaException::m_reason
protected

Definition at line 286 of file LimaCommon.h.


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