I guess the java would look something like this (w...
# spicedb
y
I guess the java would look something like this (without type annotations):
Copy code
java
status = StatusProto.fromThrowable(e);
details = status.getDetails(0);
errorInfo = details.unpack(ErrorInfo.class);
reason = errorInfo.getReason();
metadataMap = errorInfo.getMetadataMap();
the parts that seemed very much unintuitive were knowing about
StatusProto
and knowing to unpack the
details
as
ErrorInfo
3 Views