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

Struct APIError

jetstream/errors.go:35–39  ·  jetstream/errors.go::APIError

APIError is included in all API responses if there was an error.

Source from the content-addressed store, hash-verified

33
34 // APIError is included in all API responses if there was an error.
35 APIError struct {
36 Code int `json:"code"`
37 ErrorCode ErrorCode `json:"err_code"`
38 Description string `json:"description,omitempty"`
39 }
40
41 // ErrorCode represents error_code returned in response from JetStream API.
42 ErrorCode uint16

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected