MCPcopy
hub / github.com/larksuite/cli / NewAPIError

Function NewAPIError

errs/types.go:466–474  ·  view source on GitHub ↗
(subtype Subtype, format string, args ...any)

Source from the content-addressed store, hash-verified

464}
465
466func NewAPIError(subtype Subtype, format string, args ...any) *APIError {
467 return &APIError{
468 Problem: Problem{
469 Category: CategoryAPI,
470 Subtype: subtype,
471 Message: formatMessage(format, args),
472 },
473 }
474}
475
476func (e *APIError) WithHint(format string, args ...any) *APIError {
477 e.Hint = formatMessage(format, args)

Callers 15

httpStatusErrorFunction · 0.92
RevokeTokenFunction · 0.92
revokeHTTPStatusErrorFunction · 0.92
jqFilterFunction · 0.92
classifyTATResponseCodeFunction · 0.92
wrapErrorFunction · 0.92
doNpmUpdateFunction · 0.92
TestReportErrorFunction · 0.92

Calls 1

formatMessageFunction · 0.85