MCPcopy Create free account
hub / github.com/dariubs/goAI / Error

Method Error

errors.go:17–22  ·  view source on GitHub ↗

Error implements the error interface

()

Source from the content-addressed store, hash-verified

15
16// Error implements the error interface
17func (e *Error) Error() string {
18 if e.StatusCode > 0 {
19 return fmt.Sprintf("%s error (status %d): %s", e.Provider, e.StatusCode, e.Message)
20 }
21 return fmt.Sprintf("%s error: %s", e.Provider, e.Message)
22}
23
24// Unwrap returns the underlying error
25func (e *Error) Unwrap() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected