MCPcopy Index your code
hub / github.com/coder/coder / IsResponder

Function IsResponder

coderd/httpapi/httperror/responserror.go:17–23  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

15}
16
17func IsResponder(err error) (Responder, bool) {
18 var responseErr Responder
19 if errors.As(err, &responseErr) {
20 return responseErr, true
21 }
22 return nil, false
23}
24
25func NewResponseError(status int, resp codersdk.Response) error {
26 return &responseError{

Callers 10

chatStartWorkspaceMethod · 0.92
chatWorkspaceAuditStatusFunction · 0.92
ResponseMethod · 0.92
TestWsbuildErrorFunction · 0.92
CreateWorkspaceFunction · 0.92
StartWorkspaceFunction · 0.92
StopWorkspaceFunction · 0.92
TestResolveParametersFunction · 0.92
WriteWorkspaceBuildErrorFunction · 0.85
WriteResponseErrorFunction · 0.85

Calls 1

AsMethod · 0.80

Tested by 2

TestWsbuildErrorFunction · 0.74
TestResolveParametersFunction · 0.74