Versions in this module Expand all Collapse all v1 v1.0.0 Dec 20, 2022 Changes in this version + var ErrFeatureNotAvailable = errors.New(...) + var NopLineMatcher = func(m LineMatcher) int + var OffsetMatcher = func(m LineMatcher) int + var SimpleLineMatcher = func(m LineMatcher) int + func Cause(err error) error + func GetGID() uint64 + func Must(err error) + func PrintStackTrace(w io.Writer) + func Recover(args ...any) + type ErrorContext struct + ChromaLexer string + Lines []string + LinesPos int + Position text.Position + type ErrorSender interface + SendError func(err error) + type FileError interface + ErrorContext func() *ErrorContext + UpdateContent func(r io.Reader, linematcher LineMatcherFn) FileError + UpdatePosition func(pos text.Position) FileError + func NewFileError(err error) FileError + func NewFileErrorFromFile(err error, filename string, fs afero.Fs, linematcher LineMatcherFn) FileError + func NewFileErrorFromFileInErr(err error, fs afero.Fs, linematcher LineMatcherFn) FileError + func NewFileErrorFromFileInPos(err error, pos text.Position, fs afero.Fs, linematcher LineMatcherFn) FileError + func NewFileErrorFromName(err error, name string) FileError + func NewFileErrorFromPos(err error, pos text.Position) FileError + func UnwrapFileError(err error) FileError + func UnwrapFileErrors(err error) []FileError + func UnwrapFileErrorsWithErrorContext(err error) []FileError + type LineMatcher struct + Error error + Line string + LineNumber int + Offset int + Position text.Position + type LineMatcherFn func(m LineMatcher) int + type Unwrapper interface + Unwrap func() error