egrpc_error (egrpc v0.1.1)
View SourceSummary
Types
-type grpc_error() :: {grpc_error, grpc_error_name(), Message :: binary()}.
-type grpc_error_name() ::
canceled | unknown | invalid_argument | deadline_exceeded | not_found | already_exists |
permission_denied | resource_exhausted | failed_precondition | aborted | out_of_range |
unimplemented | internal | unavailable | data_loss | unauthenticated.
-type value(T) :: T.
Functions
-spec from_grpc_status(Headers) -> ok | {error, grpc_error()} when Headers :: [{binary(), binary()}].