peary::utils::RuntimeError

Exception class for runtime errors. More…

#include <peary/utils/exceptions.hpp>

Inherits from peary::utils::Exception, std::exception

Inherited by peary::component::ComponentError, peary::config::ConfigurationError, peary::device::DeviceError, peary::hal::HalError, peary::interface::InterfaceError, peary::utils::DictionnaryError, peary::utils::InvalidCommandError

Public Functions

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

Protected Functions

Name
RuntimeError() =defaultDefault constructor for RuntimeError.

Additional inherited members

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::utils::RuntimeError;
  

Exception class for runtime errors.

This class is used to represent errors that occur during the execution of a program,

Public Functions Documentation

function RuntimeError

  inline explicit RuntimeError(
    std::string what_arg
)
  

Constructor for RuntimeError.

Parameters:

  • what_arg The error message to be associated with the exception

Protected Functions Documentation

function RuntimeError

  RuntimeError() =default
  

Default constructor for RuntimeError.


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