errors

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorSeverity

type ErrorSeverity int
const (
	SeverityInfo ErrorSeverity = iota
	SeverityWarning
	SeverityError
	SeverityCritical
)

type ErrorType

type ErrorType int
const (
	ParseError ErrorType = iota
	ExecutionError
	ValidationError
)

type StructuredError

type StructuredError struct {
	Type      ErrorType
	Severity  ErrorSeverity
	Message   string
	Section   string
	Line      int
	RawData   string
	Timestamp time.Time
	Context   map[string]interface{}
}

func NewError

func NewError(errorType ErrorType, message string, severity ErrorSeverity, section string, line int, rawData string, context map[string]interface{}) *StructuredError

func (*StructuredError) Error

func (e *StructuredError) Error() string

Jump to

Keyboard shortcuts

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