Libsockcanpp
A complete C++ wrapper around socketcan.
Public Member Functions | Private Attributes
sockcanpp::exceptions::CanInitException Class Reference

An exception that may be thrown when an error occurred while initialising a CAN socket. More...

#include <CanInitException.hpp>

Inheritance diagram for sockcanpp::exceptions::CanInitException:
Inheritance graph
[legend]
Collaboration diagram for sockcanpp::exceptions::CanInitException:
Collaboration graph
[legend]

Public Member Functions

 CanInitException (string message)
 
virtual ~CanInitException ()
 
const char * what ()
 

Private Attributes

string _message
 

Detailed Description

An exception that may be thrown when an error occurred while initialising a CAN socket.

Definition at line 39 of file CanInitException.hpp.

Constructor & Destructor Documentation

◆ CanInitException()

sockcanpp::exceptions::CanInitException::CanInitException ( string  message)
inline

◆ ~CanInitException()

virtual sockcanpp::exceptions::CanInitException::~CanInitException ( )
inlinevirtual

Definition at line 42 of file CanInitException.hpp.

42{ }

Member Function Documentation

◆ what()

const char * sockcanpp::exceptions::CanInitException::what ( )
inline

Definition at line 45 of file CanInitException.hpp.

45{ return _message.c_str(); }

References _message.

Field Documentation

◆ _message

string sockcanpp::exceptions::CanInitException::_message
private

Definition at line 48 of file CanInitException.hpp.

Referenced by CanInitException(), and what().


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