MCPcopy
hub / github.com/connectrpc/connect-go / Message

Method Message

error.go:202–207  ·  view source on GitHub ↗

Message returns the underlying error message. It may be empty if the original error was created with a status code and a nil error.

()

Source from the content-addressed store, hash-verified

200// Message returns the underlying error message. It may be empty if the
201// original error was created with a status code and a nil error.
202func (e *Error) Message() string {
203 if e.err != nil {
204 return e.err.Error()
205 }
206 return ""
207}
208
209// Unwrap allows [errors.Is] and [errors.As] access to the underlying error.
210func (e *Error) Unwrap() error {

Calls 1

ErrorMethod · 0.80