karanjahpn
refactor(builder): flatten IR into relational tables (RawIr/CanonicalKey), rewrite partition.rs to match, add contextual TimelineError
76f90e3 Download runtime/builder/src/errors.rs from Sahek/kaysentinel: direct link, hf CLI and curl.
- Browser
- Download file 900 Bytes
-
https://huggingface.co/Sahek/kaysentinel/resolve/main/runtime/builder/src/errors.rs
- Command line
-
hf download hf://Sahek/kaysentinel/runtime/builder/src/errors.rs
-
curl -L -o errors.rs https://huggingface.co/Sahek/kaysentinel/resolve/main/runtime/builder/src/errors.rs
900 Bytes
| use crate::ir::timeline::EventId; | |
| pub enum TimelineError { | |
| EmptyTimeline, | |
| DiscontinuousLineage { previous_event: EventId, current_event: EventId }, | |
| } | |
| pub enum LifecycleState { | |
| Existed, | |
| Created, | |
| Destroyed, | |
| } | |
| pub enum LifecycleEvent { | |
| CreateAction, | |
| DestroyAction, | |
| } | |
| pub enum BuilderError { | |
| EventOutsideTransaction, | |
| UnexpectedTransactionBoundary, | |
| DuplicateTransactionBoundary, | |
| TimelineFailure(TimelineError), | |
| InvalidLifecycle { | |
| address: [u8; 20], | |
| previous_state: LifecycleState, | |
| attempted: LifecycleEvent, | |
| }, | |
| } | |
| impl From<TimelineError> for BuilderError { | |
| fn from(err: TimelineError) -> Self { | |
| BuilderError::TimelineFailure(err) | |
| } | |
| } | |