peary::device::DeviceError
peary::device::DeviceError
Base class for device-related errors.
#include <peary/device/exceptions.hpp>
Inherits from peary::utils::RuntimeError, peary::utils::Exception, std::exception
Inherited by peary::device::DataTakingError, peary::device::InvalidDeviceError, peary::device::InvalidInstanceError, peary::device::LibraryError
Public Functions
| Name | |
|---|---|
| DeviceError(std::string_view reason)Constructor for DeviceError. |
Protected Functions
| Name | |
|---|---|
| DeviceError() =defaultDefault constructor for DeviceError This constructor is protected to prevent instantiation without a message. |
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 |
Public Functions Documentation
function DeviceError
inline explicit DeviceError(
std::string_view reason
)
Constructor for DeviceError.
Parameters:
- reason The error message to be associated with the exception
Protected Functions Documentation
function DeviceError
DeviceError() =default
Default constructor for DeviceError This constructor is protected to prevent instantiation without a message.
Updated on 2025-11-14 at 11:31:23 +0100