MCPcopy Create free account
hub / github.com/context-space/context-space / APIError

Struct APIError

backend/internal/shared/apierrors/errors.go:43–51  ·  view source on GitHub ↗

APIError represents a standardized API error

Source from the content-addressed store, hash-verified

41
42// APIError represents a standardized API error
43type APIError struct {
44 Type ErrorType `json:"type"`
45 Code string `json:"code"`
46 Message string `json:"message"`
47 Details any `json:"details,omitempty"`
48 ProviderErr *APIError `json:"provider_error,omitempty"`
49 Err error `json:"-"`
50 HTTPCode int `json:"-"`
51}
52
53// Error returns the error message
54func (e *APIError) Error() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected