Documentation
¶
Overview ¶
Package generic holds the tool-agnostic, always-matching fallback parser. It registers at errparse.LayerGeneric so it only wins when no provider- or tool-specific parser recognised the failure: every failed runner job then still produces a CompositeError carrying the (cleaned) error output, rather than surfacing nothing.
Index ¶
Constants ¶
const GenericErrorType compositeerrors.Type = "generic"
GenericErrorType is the discriminator for an unclassified job failure. The dashboard renders it with the same generic renderer as every other composite error; its lack of a specific type is what marks it as "not yet categorised".
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericError ¶
type GenericError struct {
// Body is the cleaned, possibly-truncated error output.
Body string `json:"body"`
}
GenericError is the fallback CompositeError: a cleaned copy of the raw error output with a best-effort headline. Body is the typed payload (what a future view would group/inspect); the rendered detail section mirrors it.
func (*GenericError) Error ¶
func (e *GenericError) Error() string
Error returns a best-effort one-line headline extracted from the body.
func (*GenericError) Sections ¶
func (e *GenericError) Sections() []compositeerrors.Section
Sections renders the full cleaned error output in a code block.
func (*GenericError) Severity ¶
func (e *GenericError) Severity() compositeerrors.Severity
func (*GenericError) Type ¶
func (e *GenericError) Type() compositeerrors.Type