MCPcopy
hub / github.com/QuantumNous/new-api / Error

Method Error

oauth/types.go:37–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (e *OAuthError) Error() string {
38 if e.RawError != "" {
39 return e.RawError
40 }
41 return e.MsgKey
42}
43
44// NewOAuthError creates a new OAuth error with the given message key
45func NewOAuthError(msgKey string, params map[string]any) *OAuthError {

Callers 15

mainFunction · 0.45
InitResourcesFunction · 0.45
TurnstileCheckFunction · 0.45
redisRateLimitHandlerFunction · 0.45
redisRateLimiterFunction · 0.45
userRedisRateLimiterFunction · 0.45
authHelperFunction · 0.45
TokenAuthReadOnlyFunction · 0.45
TokenAuthFunction · 0.45
DistributeFunction · 0.45
getModelFromRequestFunction · 0.45
getModelRequestFunction · 0.45

Calls

no outgoing calls