MCPcopy Create free account
hub / github.com/compozy/agh / newToolAPIError

Function newToolAPIError

internal/cli/client_tools.go:68–74  ·  view source on GitHub ↗
(statusCode int, status string, response ToolErrorResponseRecord)

Source from the content-addressed store, hash-verified

66const nilToolErrorString = "<nil>"
67
68func newToolAPIError(statusCode int, status string, response ToolErrorResponseRecord) *toolAPIError {
69 return &toolAPIError{
70 statusCode: statusCode,
71 status: strings.TrimSpace(status),
72 response: sanitizeToolErrorResponse(response),
73 }
74}
75
76func (e *toolAPIError) Error() string {
77 if e == nil {

Callers 4

ErrorMethod · 0.85
readAPIErrorBodyFunction · 0.85

Calls 1