Expand description
Magellan-specific error codes
Error codes follow the pattern: MAG-{CATEGORY}-{3-digit number}
Categories (1-3 uppercase letters):
- REF: Reference-related errors (symbol lookup, span resolution)
- QRY: Query-related errors (invalid queries, file not found)
- IO: I/O-related errors (file access, permissions)
- V: Validation errors (checksum mismatch, invalid spans)
Each error code is stable and should not be reused.
Constantsยง
- ERROR_
CODE_ DOCUMENTATION - Error code documentation
- MAG_
IO_ 001_ FILE_ NOT_ FOUND - File not found on filesystem
- MAG_
IO_ 002_ PERMISSION_ DENIED - Permission denied
- MAG_
IO_ 003_ INVALID_ PATH - Invalid file path
- MAG_
QRY_ 001_ INVALID_ QUERY - Invalid query syntax
- MAG_
QRY_ 002_ FILE_ NOT_ FOUND - File not found in database
- MAG_
QRY_ 003_ INVALID_ PARAMS - Invalid query parameters
- MAG_
REF_ 001_ SYMBOL_ NOT_ FOUND - Symbol not found
- MAG_
REF_ 002_ AMBIGUOUS_ SYMBOL - Ambiguous symbol (multiple matches)
- MAG_
REF_ 003_ INVALID_ SPAN - Invalid span (start > end, out of bounds)
- MAG_
V_ 001_ CHECKSUM_ MISMATCH - Checksum mismatch
- MAG_
V_ 002_ SPAN_ INVALID - Span validation failed
- MAG_
V_ 003_ DB_ CORRUPTION - Database corruption detected