Expand description
Comprehensive error types for dx-serializer
This module provides a unified error handling system with detailed location information for debugging and user-friendly error messages.
Structs§
- Source
Location - Source location information for parse errors
Enums§
- DxError
- Comprehensive error type for all DX serializer operations
Constants§
- DX_
MAGIC - Magic bytes for DX binary format
- DX_
VERSION - Current binary format version
- MAX_
INPUT_ SIZE - Maximum input size (100 MB) - prevents memory exhaustion attacks
- MAX_
RECURSION_ DEPTH - Maximum recursion depth for nested structures - prevents stack overflow
- MAX_
SNIPPET_ LENGTH - Maximum length for error snippets (characters of context around error)
- MAX_
TABLE_ ROWS - Maximum table row count - prevents memory exhaustion
Functions§
- extract_
snippet - Extract a snippet of input around the error location