Libsockcanpp
A complete C++ wrapper around socketcan.
Loading...
Searching...
No Matches
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 (const string &message, int32_t socket)
 
 ~InvalidSocketException ()
 
const char * what () const noexcept
 
const int32_t getSocket () const
 

Private Attributes

int32_t m_socket
 
string m_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 ( const 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 m_socket; }

References m_socket.

◆ what()

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

Definition at line 45 of file InvalidSocketException.hpp.

45{ return m_message.c_str(); }

References m_message.

Field Documentation

◆ m_message

string sockcanpp::exceptions::InvalidSocketException::m_message
private

Definition at line 53 of file InvalidSocketException.hpp.

Referenced by InvalidSocketException(), and what().

◆ m_socket

int32_t sockcanpp::exceptions::InvalidSocketException::m_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: