Cylium Error and Warning Codes Documentation
Language version: 0.6.0
This document lists all standard error
codes in Cylium, with explanations and
context.
Each code has a unique identifier and a descriptive
message.
Errors (Axx)
| Code | Message | Description |
|---|---|---|
| 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. |
| A07 | Cannot modify a constant variable. | Attempted to modify a variable declared as
const. Constants are immutable. |
| A10 | Unclosed bracket. | A bracket was opened but not properly closed. |
| A15 | Invalid expression. | The expression is syntactically invalid or cannot be evaluated. |
| A16 | Invalid type for arithmetic operation. | An arithmetic operator was applied to an unsupported type. |
| A20 | Statements are only allowed inside functions. | A statement was used outside of a function body. |
| A21 | Unclosed string. | A string literal was not properly terminated. |
| A22 | Entry point function main not found. |
The program does not define the required
main function. |
| A24 | Requested function does not exist. | Attempted to call a function that has not been declared. |
| A26 | Expected code for exit. | The return statement is missing the
required exit code or expression. |
| A27 | Arguments count do not match. | A function was called with an incorrect number of arguments. |
| A28 | Cannot delete a constant variable. | Attempted to delete a variable declared as
const. |
| A29 | Expected variable name to delete. | The delete statement requires a valid
variable name. |
| A34 | Invalid number. | The numeric literal has an invalid format or is out of range. |
| A37 | Constant declared more than one time. | A constant with the same name has already been declared. |
| A38 | Function declared more than one time. | A function with the same name has already been declared. |
| A39 | Invalid type for logical operation. | A logical operator was applied to an unsupported type. |
| A40 | Variable is already of the target type. | The requested type conversion is unnecessary because the variable already has the target type. |
| A42 | Arguments types do not match. | One or more function arguments have incompatible types. |
| A43 | Variable type do not match. | The assigned value does not match the variable’s declared type. |
| A46 | Non-void function must always return a value. | A function with a non-void return type does
not return a value on every execution path. |
| A47 | Function returns a void. | A void function cannot be used where a
value is expected. |
| A48 | Array cannot be empty. | Array declarations must contain at least one element. |