Libsockcanpp
A complete C++ wrapper around socketcan.
Loading...
Searching...
No Matches
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 (const string &message, int32_t socket)
 
 ~CanException ()
 
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 CanException.hpp.

Constructor & Destructor Documentation

◆ CanException()

sockcanpp::exceptions::CanException::CanException ( const 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 m_socket; }

References m_socket.

◆ what()

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

Definition at line 45 of file CanException.hpp.

45{ return m_message.c_str(); }

References m_message.

Field Documentation

◆ m_message

string sockcanpp::exceptions::CanException::m_message
private

Definition at line 53 of file CanException.hpp.

Referenced by CanException(), and what().

◆ m_socket

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