MCPcopy Create free account
hub / github.com/cloudflare/cfssl / Error

Method Error

errors/error.go:216–223  ·  view source on GitHub ↗

The error interface implementation, which formats to a JSON object string.

()

Source from the content-addressed store, hash-verified

214
215// The error interface implementation, which formats to a JSON object string.
216func (e *Error) Error() string {
217 marshaled, err := json.Marshal(e)
218 if err != nil {
219 panic(err)
220 }
221 return string(marshaled)
222
223}
224
225// New returns an error that contains an error code and message derived from
226// the given category, reason. Currently, to avoid confusion, it is not

Callers 15

ServeHTTPMethod · 0.45
ServeHTTPMethod · 0.45
TestHandlerFuncFunction · 0.45
dumpWhitelistFunction · 0.45
mustParseFunction · 0.45
TestInvalidCryptoParamsFunction · 0.45
TestStartCFSSLServerFunction · 0.45
TestCreateSelfSignedCertFunction · 0.45
TestParseSerialNumberFunction · 0.45
TestServeFunction · 0.45
serverMainFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestHandlerFuncFunction · 0.36
mustParseFunction · 0.36
TestInvalidCryptoParamsFunction · 0.36
TestStartCFSSLServerFunction · 0.36
TestCreateSelfSignedCertFunction · 0.36
TestParseSerialNumberFunction · 0.36
TestServeFunction · 0.36
TestOidMainFunction · 0.36
TestErrorStringFunction · 0.36
TestHTTPErrorStringFunction · 0.36
TestSqliteTrivialFunction · 0.36