MCPcopy
hub / github.com/yunionio/cloudpods / Error

Struct Error

pkg/httperrors/httperrors.go:58–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58type Error struct {
59 Code int `json:"code,omitzero"`
60 Class string `json:"class,omitempty"`
61 Details string `json:"details,omitempty"`
62}
63
64func NewErrorFromJCError(ctx context.Context, je *httputils.JSONClientError) Error {
65 err := Error{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected