Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/larksuite/cli
/ WithCode
Method
WithCode
errs/types.go:486–489 ·
view source on GitHub ↗
(code int)
Source
from the content-addressed store, hash-verified
484
}
485
486
func
(e *APIError) WithCode(code int) *APIError {
487
e.Code = code
488
return
e
489
}
490
491
func
(e *APIError) WithRetryable() *APIError {
492
e.Retryable = true
Callers
15
httpStatusError
Function · 0.45
RevokeToken
Function · 0.45
revokeHTTPStatusError
Function · 0.45
classifyTATResponseCode
Function · 0.45
TestIsLarkCode_MatchesTypedAPIErrorCode
Function · 0.45
TestWithChain_ReturnsConcretePointer
Function · 0.45
TestBuilder_WireFormat
Function · 0.45
TestNewSecurityPolicyError_ChallengeURL
Function · 0.45
TestWrapMarkdownDownloadError
Function · 0.45
TestWithMarkdownUploadRetryDataDoesNotRetryNonRetryable
Function · 0.45
TestWithMarkdownUploadRetryVoidExhaustedAppendsHint
Function · 0.45
TestMarkdownUploadShouldRetryBranches
Function · 0.45
Calls
no outgoing calls
Tested by
15
TestIsLarkCode_MatchesTypedAPIErrorCode
Function · 0.36
TestWithChain_ReturnsConcretePointer
Function · 0.36
TestBuilder_WireFormat
Function · 0.36
TestNewSecurityPolicyError_ChallengeURL
Function · 0.36
TestWrapMarkdownDownloadError
Function · 0.36
TestWithMarkdownUploadRetryDataDoesNotRetryNonRetryable
Function · 0.36
TestWithMarkdownUploadRetryVoidExhaustedAppendsHint
Function · 0.36
TestMarkdownUploadShouldRetryBranches
Function · 0.36
TestMarkdownUploadProblemAppendsCodeSpecificHints
Function · 0.36
TestUnwrapCalendarAPIError_Code190014_ReturnsHint
Function · 0.36
TestUnwrapCalendarAPIError_Code190014_WrappedStillResolves
Function · 0.36
TestUnwrapCalendarAPIError_UnhandledCodeReturnsEmpty
Function · 0.36