From b7fa999bcdf1345567c6685973095538e82c79d7 Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Thu, 30 Nov 2023 14:49:45 +0100 Subject: [PATCH] add inner error to rpc status --- cs3/rpc/v1beta1/status.proto | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cs3/rpc/v1beta1/status.proto b/cs3/rpc/v1beta1/status.proto index 8f0be48..f2a00ee 100644 --- a/cs3/rpc/v1beta1/status.proto +++ b/cs3/rpc/v1beta1/status.proto @@ -21,6 +21,7 @@ syntax = "proto3"; package cs3.rpc.v1beta1; import "cs3/rpc/v1beta1/code.proto"; +import "cs3/types/v1beta1/types.proto"; option csharp_namespace = "Cs3.Rpc.V1Beta1"; option go_package = "rpcv1beta1"; @@ -50,4 +51,10 @@ message Status { // A Status message with CODE_REDIRECT MUST always set the target_uri. // https://golang.org/pkg/net/url/#URL provides a quick view of the format. string target_uri = 4; + // OPTIONAL. + // InnerError represents an encoded error. + // This makes it possible to transport error types + // and match them on the client side by type. + // The InnerError pattern originates from graph. + cs3.types.v1beta1.OpaqueEntry InnerError = 5; }