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

Function NewNetworkError

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

Source from the content-addressed store, hash-verified

403}
404
405func NewNetworkError(subtype Subtype, format string, args ...any) *NetworkError {
406 return &NetworkError{
407 Problem: Problem{
408 Category: CategoryNetwork,
409 Subtype: subtype,
410 Message: formatMessage(format, args),
411 },
412 }
413}
414
415func (e *NetworkError) WithHint(format string, args ...any) *NetworkError {
416 e.Hint = formatMessage(format, args)

Callers 15

WrapDoAPIErrorFunction · 0.92
httpStatusErrorFunction · 0.92
DoStreamMethod · 0.92
RevokeTokenFunction · 0.92
revokeHTTPStatusErrorFunction · 0.92
updateRunFunction · 0.92
TestReportErrorFunction · 0.92
runCreateAppFlowFunction · 0.92
CallAPIMethod · 0.92

Calls 1

formatMessageFunction · 0.85