pub enum GenerationError {
Show 16 variants
TemplateNotFound(String),
MissingPlaceholder(String),
InvalidSyntax {
line: usize,
message: String,
},
RenderError(String),
ValidationFailed(String),
IoError(Error),
SerializationError(Error),
SpecError(String),
PromptError(String),
GenerationFailed(String),
ValidationError {
file: String,
line: usize,
message: String,
},
LintingError(String),
TypeCheckingError(String),
SyntaxError(String),
WriteFailed(String),
RollbackFailed(String),
}Expand description
Errors that can occur during code generation
Variants§
TemplateNotFound(String)
Template not found
MissingPlaceholder(String)
Missing required placeholder
InvalidSyntax
Invalid template syntax
Fields
RenderError(String)
Template rendering error
ValidationFailed(String)
Validation failed
IoError(Error)
IO error
SerializationError(Error)
Serialization error
SpecError(String)
Spec processing error
PromptError(String)
Prompt building error
GenerationFailed(String)
Code generation failed
ValidationError
Validation error with details
Fields
LintingError(String)
Linting error
TypeCheckingError(String)
Type checking error
SyntaxError(String)
Syntax error
WriteFailed(String)
Write failed
RollbackFailed(String)
Rollback failed
Trait Implementations§
Source§impl Debug for GenerationError
impl Debug for GenerationError
Source§impl Display for GenerationError
impl Display for GenerationError
Source§impl Error for GenerationError
impl Error for GenerationError
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()
Source§impl From<Error> for GenerationError
impl From<Error> for GenerationError
Auto Trait Implementations§
impl Freeze for GenerationError
impl !RefUnwindSafe for GenerationError
impl Send for GenerationError
impl Sync for GenerationError
impl Unpin for GenerationError
impl !UnwindSafe for GenerationError
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