peary::interface::CommunicationError

Exception class for communication errors. More…

#include <peary/interfaces/exceptions.hpp>

Inherits from peary::interface::InterfaceError, peary::utils::RuntimeError, peary::utils::Exception, std::exception

Public Functions

Name
CommunicationError(std::string_view reason)Constructor for CommunicationError.

Additional inherited members

Public Functions inherited from peary::utils::RuntimeError

Name
RuntimeError(std::string what_arg)Constructor for RuntimeError.

Protected Functions inherited from peary::utils::RuntimeError

Name
RuntimeError() =defaultDefault constructor for RuntimeError.

Public Functions inherited from peary::utils::Exception

Name
Exception(std::string what_arg)Constructor for Exception.
const char * what() const overrideReturn the error message.

Protected Functions inherited from peary::utils::Exception

Name
Exception() =defaultDefault constructor for Exception.

Protected Attributes inherited from peary::utils::Exception

Name
std::string _message

Detailed Description

  class peary::interface::CommunicationError;
  

Exception class for communication errors.

This class is used to represent errors that occur during communication with an device via it’s corresponding interface.

Public Functions Documentation

function CommunicationError

  inline explicit CommunicationError(
    std::string_view reason
)
  

Constructor for CommunicationError.

Parameters:

  • reason The error message to be associated with the exception

Updated on 2025-11-14 at 11:31:23 +0100