peary::hal::InvalidResourceError

Exception class for invalid resources.

#include <peary/hal/exceptions.hpp>

Inherits from peary::hal::HalError, peary::utils::RuntimeError, peary::utils::Exception, std::exception

Public Functions

Name
InvalidResourceError(std::string_view resource, std::string_view reason)Constructor for InvalidResourceError.

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 InvalidResourceError

  inline explicit InvalidResourceError(
    std::string_view resource,
    std::string_view reason
)
  

Constructor for InvalidResourceError.

Parameters:

  • resource The name of the invalid resource
  • reason Optional reason for the invalid resource

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