Expand description
Semantic exit codes and error handling for ggen CLI
Provides deterministic, agent-friendly error handling with semantic exit codes that enable agents to understand why a command failed and respond appropriately.
§Exit Codes
- 0: Success - operation completed successfully
- 1: ValidationError - RDF/SHACL/type validation failed
- 2: SparqlError - SPARQL query syntax/termination error
- 3: TemplateError - Template rendering failed
- 4: OutputInvalid - Generated code failed validation (not valid Rust)
- 5: Timeout - Operation exceeded time limit
- 6: FileError - File system operation failed
- 7: NetworkError - Network operation failed
- 8: ConfigError - Configuration validation failed
- 127: Unknown - Unexpected error
Structs§
- Audit
Trail - Audit trail for code generation (enables agent verification)
Enums§
- Ggen
Error - Semantic error types for ggen CLI operations
Traits§
- Ggen
Result Ext - Extension trait for easy error conversion
Type Aliases§
- Result
- Result type for ggen CLI operations