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

Function NewAuthenticationError

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

Source from the content-addressed store, hash-verified

178}
179
180func NewAuthenticationError(subtype Subtype, format string, args ...any) *AuthenticationError {
181 return &AuthenticationError{
182 Problem: Problem{
183 Category: CategoryAuthentication,
184 Subtype: subtype,
185 Message: formatMessage(format, args),
186 },
187 }
188}
189
190func (e *AuthenticationError) WithHint(format string, args ...any) *AuthenticationError {
191 e.Hint = formatMessage(format, args)

Calls 1

formatMessageFunction · 0.85