Docs / Error System

9. Appendix A - Error Code Table

Dryad provides detailed messages with unique codes assigned according to the failing sub-component. This promotes robustness in problem tracking.

Error RangeCategoryExample Occurrence
1000-1999Lexer ErrorsUnexpected character, Unterminated string, Invalid number format.
2000-2999Parser ErrorsUnexpected token, Unbalanced parentheses, Structural syntax error.
3000-3999Runtime ErrorsUndefined variable, Division by zero, Execution stack overflow.
4000-4999Type ErrorsStatic type incompatibility, Incorrect method signature.
5000-5599I/O ErrorsFile not found, Permission failure on physical descriptor.
6000-6999Module ErrorsFFI import failure, Unknown native symbol.
7000-7999Syntax ErrorsGeneric violation of strict grammar rules.

Found an error in the spec? Open a PR.
Official Version: 1.0 · May 2026