Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ GetErrorCode
Method
GetErrorCode
relaykit/types/error.go:112–117 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
110
}
111
112
func
(e *NewAPIError) GetErrorCode() ErrorCode {
113
if
e == nil {
114
return
""
115
}
116
return
e.errorCode
117
}
118
119
func
(e *NewAPIError) GetErrorType() ErrorType {
120
if
e == nil {
Callers
15
RelayMidjourney
Function · 0.95
newConvertRequestFailedError
Function · 0.95
Error
Method · 0.95
TestChannel
Function · 0.80
writeRelayStreamError
Function · 0.80
NormalizeViolationFeeError
Function · 0.80
shouldChargeViolationFee
Function · 0.80
runFixedPriceAccountingCases
Function · 0.80
DecideRelayRetry
Function · 0.80
RecordRelayErrorLog
Function · 0.80
RecordPolicyFailure
Function · 0.80
RecordRequestPolicyTermination
Function · 0.80
Calls
no outgoing calls
Tested by
15
TestChannel
Function · 0.64
runFixedPriceAccountingCases
Function · 0.64
TestPreConsumeBillingRejectsSaturatedQuotaBeforeDeduction
Function · 0.64
TestPreConsumeBillingRejectsNegativeQuotaBeforeDeduction
Function · 0.64
TestPrepareResponsesRequestEgressReadsTheFinalizedBody
Function · 0.64
TestSelectResponsesWSChannelAcceptsNativeResponsesChannelTypes
Function · 0.64
TestOptInSafeToolLossRejectedAsBadRequestWithAdminDiagnostics
Function · 0.64
TestUnknownModelModifierIsBadRequestWithoutRetry
Function · 0.64
TestImageHelperKeepsAdaptorClassifiedConvertError
Function · 0.64
TestMultimodalEmbeddingResponse
Function · 0.64
TestSettleAnswers
Function · 0.64
TestPatchOverTheBodyLimit
Function · 0.64