MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / MakeSubCodedError

Function MakeSubCodedError

pkg/utilds/codederror.go:34–36  ·  view source on GitHub ↗

MakeSubCodedError creates a new CodedError with the given code, subcode, and error.

(code string, subCode string, err error)

Source from the content-addressed store, hash-verified

32
33// MakeSubCodedError creates a new CodedError with the given code, subcode, and error.
34func MakeSubCodedError(code string, subCode string, err error) CodedError {
35 return CodedError{Code: code, SubCode: subCode, Err: err}
36}
37
38// GetErrorCode extracts the error code from anywhere in the error chain.
39// Returns empty string if no CodedError is found.

Callers 1

connectInternalFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected