pub enum VoceError {
Schema {
code: ErrorCode,
message: String,
suggestion: String,
},
Validation {
code: ErrorCode,
message: String,
node_path: String,
suggestion: String,
severity: ErrorSeverity,
},
Compilation {
code: ErrorCode,
message: String,
node_path: String,
suggestion: String,
},
Deployment {
code: ErrorCode,
message: String,
suggestion: String,
},
Pipeline {
code: ErrorCode,
message: String,
suggestion: String,
},
AiBridge {
code: ErrorCode,
message: String,
suggestion: String,
},
}Expand description
Top-level error type for the Voce IR pipeline.
Variants§
Schema
Schema-level errors (parsing, format, version mismatch).
Validation
Validation errors (rule violations found by validation passes).
Compilation
Compilation errors (failures during IR → output conversion).
Deployment
Deployment errors (failures during bundle/upload).
Pipeline
Pipeline errors (orchestration failures).
AiBridge
AI bridge errors (generation, API, timeout).
Trait Implementations§
Source§impl Error for VoceError
impl Error for VoceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for VoceError
impl RefUnwindSafe for VoceError
impl Send for VoceError
impl Sync for VoceError
impl Unpin for VoceError
impl UnsafeUnpin for VoceError
impl UnwindSafe for VoceError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more