Module error

Module error 

Source

Structs§

BreakError
This error is thrown when a break statement is executed. Since errors are propagated up the execution stack, the interpreter can catch it and break out of the current loop.
ParseError
Represents an error that occurs during parsing.
ResolveError
Represents an error that occurs during resolution.
ReturnError
This error is thrown when a return statement is executed. Since errors are propagated up the execution stack, the interpreter can catch it and return the value of the return statement.
RuntimeError
Represents an error that occurs during runtime.
ScanError
Represents an error that occurs during scanning.

Enums§

ReturnType
Represents a special error that is caught by the interpreter.

Traits§

Error
Every error type must implement this trait.

Functions§

did_error
Checks if an error occurred during scanning, parsing, or interpreting.
did_runtime_error
Checks if an error occurred during runtime.
reset_error
Resets the error flag. This is used to reset the interpreter after an error occurs when running prompts.