MCPcopy Index your code
hub / github.com/aiprodcoder/MIXAPI / Error

Method Error

types/error.go:90–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90func (e *NewAPIError) Error() string {
91 if e == nil {
92 return ""
93 }
94 if e.Err == nil {
95 // fallback message when underlying error is missing
96 return string(e.errorCode)
97 }
98 return e.Err.Error()
99}
100
101func (e *NewAPIError) SetMessage(message string) {
102 e.Err = errors.New(message)

Callers 15

ToOpenAIErrorMethod · 0.95
ToClaudeErrorMethod · 0.95
relayHandlerFunction · 0.95
RelayFunction · 0.95
WssRelayFunction · 0.95
RelayClaudeFunction · 0.95
mainFunction · 0.80
InitResourcesFunction · 0.80
NewOpenAIErrorFunction · 0.80
TurnstileCheckFunction · 0.80
redisRateLimitHandlerFunction · 0.80
redisRateLimiterFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestChannelFunction · 0.64