Expand description
Semantic errors.
Structs§
- Already
Defined - Error to be returned from APIs that should reject duplicate definitions
- Const
Eval Error - Error indicating constant evaluation failed.
- Fatal
Error - Error to be returned when otherwise no meaningful information can be returned.
Can’t be created unless a diagnostic has been emitted, and thus a
DiagnosticVoucher
has been obtained. (See comment onTypeError
) - Incomplete
Item - Error returned by
ModuleId::resolve_name
if the name is not found, and parsing of the module failed. In this case, emitting an error message about failure to resolve the name might be misleading, because the file may in fact contain an item with the given name, somewhere after the syntax error that caused parsing to fail. - Type
Error - Error indicating that a type is invalid.
Enums§
- Binary
Operation Error - Errors that can result from a binary operation
- Indexing
Error - Errors that can result from indexing
- Type
Coercion Error - Errors that can result from an implicit type coercion