Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::ExceptionSystemCall Class Reference

Exception implementation for system calls failing within a wrapper class. More...

#include <Exception.h>

Inheritance diagram for sf::ExceptionSystemCall:
[legend]
Collaboration diagram for sf::ExceptionSystemCall:
[legend]

Public Member Functions

 ExceptionSystemCall (const char *syscall, int error, const char *mangled_name, const char *func)
 Formatting Constructor with a class type_info, function and error value.
Public Member Functions inherited from sf::Exception
 Exception () noexcept
 Default Constructor.
 Exception (const Exception &ex) noexcept=default
 Copy constructor.
 Exception (const char *message) noexcept
 Constructor initializing message.
template<typename... Args>
 Exception (const char *format, Args &&... args) noexcept
 Formatting constructor.
Public Member Functions inherited from sf::ExceptionBase< Exception >
 ExceptionBase () noexcept
 Default Constructor.
const char * what () const noexcept override
 Overridden from base class 'std::exception'.
void formatMessage (const char *format, Args... args) noexcept
 Formats the exception message according sprintf().
Exception Function (const char *mangled_name, const char *func, const char *format, Args &&... args)
 Formatting function with a class type_info and formatting the message.

Additional Inherited Members

Protected Types inherited from sf::ExceptionBase< Exception >
enum  
 Enumerate which sets the buffer size for formatting. More...
Protected Attributes inherited from sf::ExceptionBase< Exception >
std::unique_ptr< char > _msg
 Pointer to message string.

Detailed Description

Exception implementation for system calls failing within a wrapper class.

throw ExceptionSystemCall("pthread_mutex_lock", error, typeid(*this).name(), __FUNCTION__);
ExceptionSystemCall(const char *syscall, int error, const char *mangled_name, const char *func)
Formatting Constructor with a class type_info, function and error value.

Constructor & Destructor Documentation

◆ ExceptionSystemCall()

sf::ExceptionSystemCall::ExceptionSystemCall ( const char * syscall,
int error,
const char * mangled_name,
const char * func )

Formatting Constructor with a class type_info, function and error value.


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