pqerr

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithFile

func WithFile(err error, file string) error

func Wrap

func Wrap(pos Pos, ruleId, ruleHash, creId string, err error, msg ...string) error

Types

type Error

type Error struct {
	Pos      Pos    // line / column
	RuleId   string // rule‑ID (may be empty)
	RuleHash string // rule‑hash (may be empty)
	CreId    string // cre‑ID (may be empty)
	Msg      string // optional extra text
	File     string // file name
	Err      error  // wrapped sentinel or nested error
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) GetCreId

func (e *Error) GetCreId() string

func (*Error) GetFile

func (e *Error) GetFile() string

func (*Error) GetPos

func (e *Error) GetPos() Pos

func (*Error) GetRuleHash

func (e *Error) GetRuleHash() string

func (*Error) GetRuleId

func (e *Error) GetRuleId() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

type HasPos

type HasPos interface{ GetPos() Pos }

type HasRule

type HasRule interface {
	RuleId() string
	RuleHash() string
	CreId() string
	File() string
}

type Pos

type Pos struct{ Line, Col int }

func PosOf

func PosOf(err error) (Pos, bool)

Jump to

Keyboard shortcuts

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