package
0.0.0-20220930082050-67fbc49d198a
Repository: https://github.com/akyoto/q.git
Documentation: pkg.go.dev
# README
errors
This package lists all the possible compiler errors.
Usage
To capture the call stack, the errors.New(error)
constructor should be used. It will let the compiler developers know which particular line in the source code generated the error.
Examples
MissingFunctionName
errors.New(errors.MissingFunctionName)
UnknownFunction
errors.New(&errors.UnknownFunction{Name: "doesNotExist"})
errors.New(&errors.UnknownFunction{Name: "prin", CorrectName: "print"})