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

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

#include <InvalidSocketException.hpp>

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

Public Member Functions

 InvalidSocketException (string message, int32_t socket)
 
 ~InvalidSocketException ()
 
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 InvalidSocketException.hpp.

Constructor & Destructor Documentation

◆ InvalidSocketException()

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

◆ ~InvalidSocketException()

sockcanpp::exceptions::InvalidSocketException::~InvalidSocketException ( )
inline

Definition at line 42 of file InvalidSocketException.hpp.

42{}

Member Function Documentation

◆ getSocket()

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

Definition at line 48 of file InvalidSocketException.hpp.

48{ return _socket; }

References _socket.

◆ what()

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

Definition at line 45 of file InvalidSocketException.hpp.

45{ return _message.c_str(); }

References _message.

Field Documentation

◆ _message

string sockcanpp::exceptions::InvalidSocketException::_message
private

Definition at line 53 of file InvalidSocketException.hpp.

Referenced by InvalidSocketException(), and what().

◆ _socket

int32_t sockcanpp::exceptions::InvalidSocketException::_socket
private

Definition at line 51 of file InvalidSocketException.hpp.

Referenced by getSocket(), and InvalidSocketException().


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