Cylium Error and Warning Codes Documentation
Language version: 0.4.1
This document lists all standard error and
warning codes in Cylium, with explanations and
context.
Each code has a unique identifier and a descriptive
message.
Note:
- Codes starting withAare errors. They stop program execution.
- Codes starting withCare warnings. They indicate non-critical issues but do not stop execution.
Errors (Axx)
| Code | Message | Description |
|---|---|---|
| A02 | Cannot convert value to numeric type. | Failed to convert a value to a number. Check value type and formatting. |
| A03 | Requested variable does not exist. | Attempted to access a variable that has not been declared. |
| A04 | Expected assignment operator ‘=’ after variable name. | The variable declaration is missing the =
operator. |
| A05 | Invalid variable name. | The variable name does not follow Cylium naming rules (ASCII, not starting with a number, length <= 256). |
| A07 | Cannot modify a constant variable. | Tried to change a variable declared as
const. Constants are immutable. |
| A08 | Unknown data type. | Attempted to convert or declare a type that does not exist. |
| A10 | Unclosed bracket. | A (, [, or { was
not properly closed. |
| A15 | Invalid expression. | The expression syntax is incorrect or cannot be evaluated. |
| A16 | Invalid type for arithmetic operation. | An arithmetic operation was applied to an unsupported type. |
| A17 | Invalid array index. | Tried to access a vector element with an invalid index (negative or out-of-bounds). |
| A18 | This operator can only be used with strings. | The operator requires a string type, but another type was provided. |
| A19 | Cannot convert value to vector. | Failed to convert a vector to a number. Check value type and formatting. |
| A20 | Statements are only allowed inside procedures | Tried to use a statement outside of any procedure. |
| A21 | Unclosed string. | A " was not properly closed. |
| A22 | Entry point procedure main not found. |
The program does not contain a main procedure, which is required as the entry point. |
| A24 | Requested procedure does not exist. | Attempted to call a procedure that has not been declared. |
| A26 | Expected code for exit. | exit statement is missing a required return
code or expression. |
| A27 | Arguments count do not match. | Called a procedure with the wrong number of arguments. |
| A28 | Cannot delete a constant variable. | Attempted to delete a variable declared as
const. |
| A29 | Expected variable name to delete. | Attempted to delete a variable that has not been declared or already has been deleted. |
| A30 | This operator can only be used with vectors. | The operator requires a vector type, but another type was provided. |
Warnings (Cxx)
| Code | Message | Description |
|---|---|---|
| C01 | Variable is already of the target type. | Attempted to cast a variable to a type it already has. Redundant but does not stop execution. |
| C02 | Failed to read input. | The program could not read input from the user or source. Check input source and format. |
Usage Notes
- Errors (
Axx) stop program execution and must be fixed before the code can run correctly.
- Warnings (
Cxx) do not stop execution, but they indicate potential issues or redundant operations.
- Properly handling errors and paying attention to warnings improves code reliability and maintainability.
This system allows developers to quickly distinguish
between critical errors that stop execution
and non-critical warnings that can be
safely ignored or optimized.
Properly handling errors and paying attention to warnings
improves code reliability and maintainability.