Viam C++ SDK current
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
exception.hpp File Reference

Defines custom exceptions for the SDK. More...

#include <grpcpp/support/status.h>
#include <stdexcept>
#include <string>
#include <viam/sdk/resource/resource_api.hpp>

Go to the source code of this file.

Classes

class  viam::sdk::Exception
 Defines an exception type for the SDK. More...
 
class  viam::sdk::GRPCException
 Defines an exception from a gRPC interaction. More...
 
struct  std::is_error_condition_enum< viam::sdk::ErrorCondition >
 

Enumerations

enum class  ErrorCondition : uint8_t {
  k_general = 0 , k_connection = 1 , k_duplicate_registration = 2 , k_duplicate_resource = 3 ,
  k_grpc = 4 , k_not_supported = 5 , k_resource_not_found = 6
}
 

Functions

std::error_condition viam::sdk::make_error_condition (ErrorCondition e)
 

Detailed Description

Defines custom exceptions for the SDK.