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

Function NewError

codersdk/client.go:550–555  ·  view source on GitHub ↗

NewError creates a new Error with the response and status code.

(statusCode int, response Response)

Source from the content-addressed store, hash-verified

548
549// NewError creates a new Error with the response and status code.
550func NewError(statusCode int, response Response) *Error {
551 return &Error{
552 statusCode: statusCode,
553 Response: response,
554 }
555}
556
557type closeFunc func() error
558

Callers 3

UpdateAppStatusMethod · 0.92

Calls

no outgoing calls