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

Struct APIError

jserrors.go:209–213  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

207
208// APIError is included in all API responses if there was an error.
209type APIError struct {
210 Code int `json:"code"`
211 ErrorCode ErrorCode `json:"err_code"`
212 Description string `json:"description,omitempty"`
213}
214
215// Error prints the JetStream API error code and description
216func (e *APIError) Error() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected