On this page
article
peary::device::InvalidDeviceError
peary::device::InvalidDeviceError
Exception class for invalid device errors.
#include <peary/device/exceptions.hpp>
Inherits from peary::device::DeviceError, peary::utils::RuntimeError, peary::utils::Exception, std::exception
Public Functions
| Name | |
|---|---|
| InvalidDeviceError(std::string_view device, std::string_view reason)Constructor for InvalidDeviceError. |
Additional inherited members
Public Functions inherited from peary::device::DeviceError
| Name | |
|---|---|
| DeviceError(std::string_view reason)Constructor for DeviceError. |
Protected Functions inherited from peary::device::DeviceError
| Name | |
|---|---|
| DeviceError() =defaultDefault constructor for DeviceError This constructor is protected to prevent instantiation without a message. |
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 |
Public Functions Documentation
function InvalidDeviceError
inline explicit InvalidDeviceError(
std::string_view device,
std::string_view reason
)
Constructor for InvalidDeviceError.
Parameters:
- device The name of the invalid device
- reason An optional reason for the invalidity
Updated on 2025-11-14 at 11:31:23 +0100