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

An exception that may be thrown when an error occurs while closing a CAN socket. More...

#include <CanException.hpp>

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

Public Member Functions

 CanException (string message, int32_t socket)
 
 ~CanException ()
 
const char * what ()
 
const int32_t getSocket () const
 

Private Attributes

int32_t _socket
 
string _message
 

Detailed Description

An exception that may be thrown when an error occurs while closing a CAN socket.

Definition at line 39 of file CanException.hpp.

Constructor & Destructor Documentation

◆ CanException()

sockcanpp::exceptions::CanException::CanException ( string  message,
int32_t  socket 
)
inline

◆ ~CanException()

sockcanpp::exceptions::CanException::~CanException ( )
inline

Definition at line 42 of file CanException.hpp.

42{}

Member Function Documentation

◆ getSocket()

const int32_t sockcanpp::exceptions::CanException::getSocket ( ) const
inline

Definition at line 48 of file CanException.hpp.

48{ return _socket; }

References _socket.

◆ what()

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

Definition at line 45 of file CanException.hpp.

45{ return _message.c_str(); }

References _message.

Field Documentation

◆ _message

string sockcanpp::exceptions::CanException::_message
private

Definition at line 53 of file CanException.hpp.

Referenced by CanException(), and what().

◆ _socket

int32_t sockcanpp::exceptions::CanException::_socket
private

Definition at line 51 of file CanException.hpp.

Referenced by CanException(), and getSocket().


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