5#include <grpcpp/support/status.h>
9#include <viam/sdk/resource/resource_api.hpp>
23 k_duplicate_registration = 2,
24 k_duplicate_resource = 3,
27 k_resource_not_found = 6
38 explicit Exception(
const std::string& what);
41 const std::error_condition& condition()
const noexcept;
44 std::error_condition condition_;
54 const grpc::Status& status()
const noexcept;
65struct is_error_condition_enum<viam::sdk::ErrorCondition> : true_type {};
Defines a set of a error conditions to be used in conjunction with Exception.
Defines an exception type for the SDK.
Definition exception.hpp:35
Defines an exception from a gRPC interaction.
Definition exception.hpp:50