MCPcopy Create free account
hub / github.com/QuantumNous/new-api / Error

Method Error

types/error.go:123–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121}
122
123func (e *NewAPIError) Error() string {
124 if e == nil {
125 return ""
126 }
127 if e.Err == nil {
128 // fallback message when underlying error is missing
129 return string(e.errorCode)
130 }
131 return e.Err.Error()
132}
133
134func (e *NewAPIError) ErrorWithStatusCode() string {
135 if e == nil {

Callers 7

ErrorWithStatusCodeMethod · 0.95
ToOpenAIErrorMethod · 0.95
ToClaudeErrorMethod · 0.95
NewOpenAIErrorFunction · 0.95
RelayTaskFunction · 0.95
MaskSensitiveErrorMethod · 0.45
NewErrorWithStatusCodeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected