Lugdunum  0.1.0
Public Member Functions | Private Attributes | List of all members
lug::System::Exception Class Reference

#include <Exception.hpp>

Inheritance diagram for lug::System::Exception:
[legend]
Collaboration diagram for lug::System::Exception:
[legend]

Public Member Functions

 Exception (const char *typeName, const std::string &description, const char *file, const char *function, uint32_t line)
 Exception constructor. More...
 
 Exception (Exception &&other)=default
 
 Exception (const Exception &other)=default
 
Exceptionoperator= (const Exception &other)=default
 
Exceptionoperator= (Exception &&other)=default
 
virtual ~Exception () throw ()
 
const std::string & getTypeName () const
 TypeName getter. More...
 
const std::string & getDescription () const
 Description getter. More...
 
const std::string & getFile () const
 File getter. More...
 
const std::string & getFunction () const
 Function getter. More...
 
uint32_t getLine () const
 Line getter. More...
 
const char * what () const noexcept override
 Return the full formated exception. More...
 

Private Attributes

std::string _typeName
 
std::string _description
 
std::string _file
 
std::string _function
 
uint32_t _line
 
std::string _fullDesc
 

Detailed Description

Definition at line 12 of file Exception.hpp.

Constructor & Destructor Documentation

◆ Exception() [1/3]

lug::System::Exception::Exception ( const char *  typeName,
const std::string &  description,
const char *  file,
const char *  function,
uint32_t  line 
)

Exception constructor.

Parameters
typeNameThe exception type.
descriptionThe exception description.
fileThe file where exception was thrown.
functionThe function where exception was thrown.
lineThe line where exception was thrown.

Definition at line 4 of file Exception.cpp.

◆ Exception() [2/3]

lug::System::Exception::Exception ( Exception &&  other)
default

◆ Exception() [3/3]

lug::System::Exception::Exception ( const Exception other)
default

◆ ~Exception()

virtual lug::System::Exception::~Exception ( )
throw (
)
inlinevirtual

Definition at line 27 of file Exception.hpp.

Member Function Documentation

◆ operator=() [1/2]

Exception& lug::System::Exception::operator= ( const Exception other)
default

◆ operator=() [2/2]

Exception& lug::System::Exception::operator= ( Exception &&  other)
default

◆ getTypeName()

const std::string & lug::System::Exception::getTypeName ( ) const

TypeName getter.

Returns
The typeName of the current exception.

Definition at line 7 of file Exception.cpp.

◆ getDescription()

const std::string & lug::System::Exception::getDescription ( ) const

Description getter.

Returns
The description of the current exception.

Definition at line 11 of file Exception.cpp.

◆ getFile()

const std::string & lug::System::Exception::getFile ( ) const

File getter.

Returns
The file of the current exception.

Definition at line 15 of file Exception.cpp.

◆ getFunction()

const std::string & lug::System::Exception::getFunction ( ) const

Function getter.

Returns
The function of the current exception.

Definition at line 19 of file Exception.cpp.

◆ getLine()

uint32_t lug::System::Exception::getLine ( ) const

Line getter.

Returns
The line of the current exception.

Definition at line 23 of file Exception.cpp.

◆ what()

const char * lug::System::Exception::what ( ) const
overridenoexcept

Return the full formated exception.

Returns
The full formated exceptionn.

Definition at line 27 of file Exception.cpp.

Member Data Documentation

◆ _typeName

std::string lug::System::Exception::_typeName
private

Definition at line 66 of file Exception.hpp.

◆ _description

std::string lug::System::Exception::_description
private

Definition at line 67 of file Exception.hpp.

◆ _file

std::string lug::System::Exception::_file
private

Definition at line 68 of file Exception.hpp.

◆ _function

std::string lug::System::Exception::_function
private

Definition at line 69 of file Exception.hpp.

◆ _line

uint32_t lug::System::Exception::_line
private

Definition at line 70 of file Exception.hpp.

◆ _fullDesc

std::string lug::System::Exception::_fullDesc
mutableprivate

Definition at line 72 of file Exception.hpp.


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