MCPcopy Index your code
hub / github.com/cloudflare/cfssl / Error

Struct Error

errors/error.go:13–16  ·  view source on GitHub ↗

Error is the error type usually returned by functions in CF SSL package. It contains a 4-digit error code where the most significant digit describes the category where the error occurred and the rest 3 digits describe the specific error reason.

Source from the content-addressed store, hash-verified

11// describes the category where the error occurred and the rest 3 digits
12// describe the specific error reason.
13type Error struct {
14 ErrorCode int `json:"code"`
15 Message string `json:"message"`
16}
17
18// Category is the most significant digit of the error code.
19type Category int

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected