MCPcopy
hub / github.com/grpc/grpc-go / Err

Method Err

internal/status/status.go:125–130  ·  internal/status/status.go::Status.Err

Err returns an immutable error representing s; returns nil if s.Code() is OK.

()

Source from the content-addressed store, hash-verified

123
124// Err returns an immutable error representing s; returns nil if s.Code() is OK.
125func (s *Status) Err() error {
126 if s.Code() == codes.OK {
127 return nil
128 }
129 return &Error{s: s}
130}
131
132// WithDetails returns a new status with the provided details messages appended to the status.
133// If any errors are encountered, it returns nil and the first error encountered.

Callers 15

CloseMethod · 0.95
processUnaryRPCMethod · 0.80
processStreamingRPCMethod · 0.80
startMethod · 0.80
resolveNowMethod · 0.80
newAttemptLockedMethod · 0.80
shouldRetryMethod · 0.80
recvMsgMethod · 0.80
newNonRetryClientStreamFunction · 0.80

Calls 1

CodeMethod · 0.95