errors

package
Version: v0.0.0-...-877e1b8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//SyntaxError is used when the Heron code does not match our syntax
	SyntaxError = "SyntaxError"

	//ImportError is thrown when the compiler fails to fetch the specified file
	ImportError = "ImportError"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	//Type is the type of error
	Type ErrorType

	//Msg is the error message
	Msg string

	//Loc is the location of where the error originated
	Loc token.Loc
}

Error is an organized and consistent representation of an error message

func (Error) Print

func (e Error) Print()

Print will format and log the error to the console

type ErrorType

type ErrorType string

ErrorType represents the type of error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL