MCPcopy
hub / github.com/prometheus/client_golang / Error

Struct Error

api/prometheus/v1/api.go:445–449  ·  api/prometheus/v1/api.go::Error

Error is an error returned by the API.

Source from the content-addressed store, hash-verified

443
444// Error is an error returned by the API.
445type Error struct {
446 Type ErrorType
447 Msg string
448 Detail string
449}
450
451func (e *Error) Error() string {
452 return fmt.Sprintf("%s: %s", e.Type, e.Msg)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected