AttributeNameError#

Fully qualified name: isaacsim::common::exceptions::AttributeNameError

class AttributeNameError : public isaacsim::common::exceptions::IsaacSimException#

Raised when a caller references an attribute name that does not exist or is not accepted.

Public Functions

explicit AttributeNameError(
const std::string &attributeName,
const std::optional<std::vector<std::string>> &validAttributeNames = std::nullopt,
)#

Construct the exception for an invalid attribute name.

Parameters:
  • attributeName – [in] The offending attribute name.

  • validAttributeNames – [in] A list of valid attribute names (optional).

const std::string &getAttributeName() const noexcept#

Return the offending attribute name.

const std::vector<std::string> &getValidAttributeNames(
) const noexcept#

Return the valid attribute names.

const char *what() const noexcept override#

Return the human-readable description of the failure.