MCPcopy
hub / github.com/wavetermdev/waveterm / MakeCodedError

Function MakeCodedError

pkg/utilds/codederror.go:29–31  ·  view source on GitHub ↗

MakeCodedError creates a new CodedError with the given code and error.

(code string, err error)

Source from the content-addressed store, hash-verified

27
28// MakeCodedError creates a new CodedError with the given code and error.
29func MakeCodedError(code string, err error) CodedError {
30 return CodedError{Code: code, SubCode: "", Err: err}
31}
32
33// MakeSubCodedError creates a new CodedError with the given code, subcode, and error.
34func MakeSubCodedError(code string, subCode string, err error) CodedError {

Callers 5

createPublicKeyCallbackFunction · 0.92
createHostKeyCallbackFunction · 0.92
ConnectToClientFunction · 0.92
ErrorfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected