Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::ExceptionBase< T > Class Template Reference

Exception implementation inherited from std::exception. More...

#include <Exception.h>

Inheritance diagram for sf::ExceptionBase< T >:
Collaboration diagram for sf::ExceptionBase< T >:

Public Member Functions

 ExceptionBase () noexcept
 Default Constructor.
 
 ExceptionBase (const ExceptionBase &ex) noexcept
 Copy constructor.
 
 ExceptionBase (const ExceptionBase &&ex) noexcept
 Move constructor.
 
const char * what () const noexcept override
 Overloaded from base class 'std::exception'.
 
template<typename... Args>
void formatMessage (const char *format, Args... args) noexcept
 Formats the exception message according sprintf().
 
void formatMessage (const char *message) noexcept
 Formats the exception message when no arguments are given.
 
template<typename... Args>
Function (const char *mangled_name, const char *func, const char *format, Args &&... args)
 
Function (const char *mangled_name, const char *func, const char *message)
 Formatting function with a class type_info and passing the message without formatting.
 

Protected Types

enum  { BUF_SIZE = 1024 }
 Enumerate which sets the buffer size for formatting. More...
 

Protected Attributes

std::unique_ptr< char > _msg {new char[BUF_SIZE]}
 Pointer to message string.
 

Detailed Description

template<typename T>
class sf::ExceptionBase< T >

Exception implementation inherited from std::exception.

Member Enumeration Documentation

◆ anonymous enum

template<typename T >
anonymous enum
protected

Enumerate which sets the buffer size for formatting.

Enumerator
BUF_SIZE 

Constructor & Destructor Documentation

◆ ExceptionBase() [1/3]

template<typename T >
sf::ExceptionBase< T >::ExceptionBase ( )
inlinenoexcept

◆ ExceptionBase() [2/3]

template<typename T >
sf::ExceptionBase< T >::ExceptionBase ( const ExceptionBase< T > &  ex)
inlinenoexcept

Copy constructor.

◆ ExceptionBase() [3/3]

template<typename T >
sf::ExceptionBase< T >::ExceptionBase ( const ExceptionBase< T > &&  ex)
inlinenoexcept

Move constructor.

Member Function Documentation

◆ formatMessage() [1/2]

template<typename T >
template<typename... Args>
void sf::ExceptionBase< T >::formatMessage ( const char *  format,
Args...  args 
)
inlinenoexcept

Formats the exception message according sprintf().

Examples
/mnt/server/userdata/source/c++src/qt-concepts/src/com/misc/gen/Exception.h.

◆ formatMessage() [2/2]

template<typename T >
void sf::ExceptionBase< T >::formatMessage ( const char *  message)
inlinenoexcept

Formats the exception message when no arguments are given.

◆ Function() [1/2]

template<typename T >
template<typename... Args>
T sf::ExceptionBase< T >::Function ( const char *  mangled_name,
const char *  func,
const char *  format,
Args &&...  args 
)
inline

◆ Function() [2/2]

template<typename T >
T sf::ExceptionBase< T >::Function ( const char *  mangled_name,
const char *  func,
const char *  message 
)
inline

Formatting function with a class type_info and passing the message without formatting.

◆ what()

template<typename T >
const char * sf::ExceptionBase< T >::what ( ) const
inlineoverridenoexcept

Overloaded from base class 'std::exception'.

Examples
/mnt/server/userdata/source/c++src/qt-concepts/src/com/misc/gen/Exception.h.

Member Data Documentation

◆ _msg

template<typename T >
std::unique_ptr<char> sf::ExceptionBase< T >::_msg {new char[BUF_SIZE]}
protected

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