MCPcopy
hub / github.com/nats-io/nats.go / Error

Method Error

jetstream/errors.go:515–520  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

513}
514
515func (err *jsError) Error() string {
516 if err.apiErr != nil && err.apiErr.Description != "" {
517 return err.apiErr.Error()
518 }
519 return fmt.Sprintf("nats: %s", err.message)
520}
521
522func (err *jsError) Unwrap() error {
523 // Allow matching to embedded APIError in case there is one.

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected