AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::device::DeviceException Class Reference

Device error. More...

#include <deviceException.hpp>

Inheritance diagram for anch::device::DeviceException:
Collaboration diagram for anch::device::DeviceException:

Public Member Functions

 DeviceException (const std::string &message, int errnum=errno)
virtual ~DeviceException () noexcept

Detailed Description

Device error.

The errno value of the failed system call is available with code() ( std::generic_category ) and its description is appended to the message returned by what() .

Author
Vincent Lachenal

Constructor & Destructor Documentation

◆ DeviceException()

anch::device::DeviceException::DeviceException ( const std::string & message,
int errnum = errno )
explicit

DeviceException constructor

Parameters
messagethe error message
errnumthe errno value (default to current errno )

◆ ~DeviceException()

virtual anch::device::DeviceException::~DeviceException ( )
virtualnoexcept

DeviceException destructor


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