errors

package
v0.0.0-...-438179e Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package errors is dedicated to hold the error numbers and description of each knowen error in Serene

Index

Constants

This section is empty.

Variables

View Source
var ErrorsDescription map[Errno]string = map[Errno]string{
	E0000: `Can't find any description for this error.`,
	E0001: `
Namespaces are fundamental units in Serene. Each file has to start with
a namespace declaration with a name that matches the path of the file.

For example imagine haivng a file with the following path
'/home/user/xyz/src/example/abc.srn' and '/home/user/xyz/src' is
in the load path. The namespace path to the file would be 'example.abc' so
that file has to contain a 'ns' form as the first expression with
'example.abc' as the name just like:

(ns example.abc)
...rest of the file...

Since comments are not expressions it's ok to start a file by comments
followed by the 'ns' form`,

	E0002: `
Functions expect a certain number of argument. The number of arguments
that you're passing to the function doesn't match with it's signature.
To fix the problem double check the function signature and make sure
that you're passing the correct number of arguments to it`,
	E0003: `
Do you have a typo ? Or did you forget to define a symbol that you're trying
to evaluate ?

This error happens when the symbol that you're trying to evaluate is not
associated with any value in the current scope tree.
`,
}

Functions

This section is empty.

Types

type Errno

type Errno uint
const (
	E0000 Errno = iota // THE DESCRIPTION IS NOT SET
	E0001
	E0002
	E0003
)

func (Errno) String

func (e Errno) String() string

Jump to

Keyboard shortcuts

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