compiler_error

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInternal           = errors.New("internal error")
	ErrEmptyLanguage      = errors.New("invalid empty language")
	ErrEmptyPolicies      = errors.New("invalid empty policies")
	ErrEmptySubject       = errors.New("invalid empty subject")
	ErrInvalidSubject     = errors.New("invalid subject")
	ErrEmptyVerb          = errors.New("invalid empty verb")
	ErrEmptyTypePattern   = errors.New("invalid empty type-pattern")
	ErrUnknownCondition   = errors.New("invalid unknown condition")
	ErrUnknownWhereClause = errors.New("invalid unknown where clause")
)

Errors ...

Functions

This section is empty.

Types

type Error

type Error struct {
	Err  error
	Line int
	Desc string
}

Error defines a compiler specific error type

func New

func New(err error, line int, desc string) *Error

New is a convenience function to create an Error

func (*Error) Error

func (e *Error) Error() string

Error satisfies the error interface

Jump to

Keyboard shortcuts

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