generic

package
v0.19.1069 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL