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

Method Error

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

Error returns the error message

()

Source from the content-addressed store, hash-verified

52
53// Error returns the error message
54func (e *APIError) Error() string {
55 if e.ProviderErr != nil {
56 return fmt.Sprintf("%s: %s (provider error: %s)", e.Type, e.Message, e.ProviderErr.Error())
57 }
58 return fmt.Sprintf("%s: %s", e.Type, e.Message)
59}
60
61// Unwrap returns the wrapped error
62func (e *APIError) Unwrap() error {

Calls

no outgoing calls