pub enum BevyAIError {
Show 20 variants
Config(ConfigError),
Http(Error),
Json(Error),
Io(Error),
WalkDir(Error),
Template(RenderError),
TemplateCreation(TemplateError),
CodeParsing(String),
AIApi {
message: String,
},
MissingApiKey {
provider: String,
},
UnsupportedModel {
model: String,
},
ProjectNotFound {
path: String,
},
InvalidProject {
reason: String,
},
FeatureGeneration {
reason: String,
},
CodeOptimization {
reason: String,
},
FileOperation {
operation: String,
path: String,
},
TemplateNotFound {
name: String,
},
DependencyResolution {
dependency: String,
},
BuildSystem {
message: String,
},
Validation {
message: String,
},
}Expand description
Main error type for Bevy AI operations
Variants§
Config(ConfigError)
Configuration-related errors
Http(Error)
HTTP request errors
Json(Error)
JSON serialization/deserialization errors
Io(Error)
Input/output errors
WalkDir(Error)
File system traversal errors
Template(RenderError)
Template rendering errors
TemplateCreation(TemplateError)
Template creation errors
CodeParsing(String)
Code parsing errors
AIApi
AI API communication errors
MissingApiKey
Missing API key errors
UnsupportedModel
Unsupported model errors
ProjectNotFound
Project not found errors
InvalidProject
Invalid project structure errors
FeatureGeneration
Feature generation errors
CodeOptimization
Code optimization errors
FileOperation
File operation errors
TemplateNotFound
Template not found errors
DependencyResolution
Dependency resolution errors
BuildSystem
Build system errors
Validation
Validation errors
Implementations§
Source§impl BevyAIError
impl BevyAIError
Sourcepub fn missing_api_key<S: Into<String>>(provider: S) -> Self
pub fn missing_api_key<S: Into<String>>(provider: S) -> Self
Create a new missing API key error
Sourcepub fn unsupported_model<S: Into<String>>(model: S) -> Self
pub fn unsupported_model<S: Into<String>>(model: S) -> Self
Create a new unsupported model error
Sourcepub fn project_not_found<S: Into<String>>(path: S) -> Self
pub fn project_not_found<S: Into<String>>(path: S) -> Self
Create a new project not found error
Sourcepub fn invalid_project<S: Into<String>>(reason: S) -> Self
pub fn invalid_project<S: Into<String>>(reason: S) -> Self
Create a new invalid project error
Sourcepub fn feature_generation<S: Into<String>>(reason: S) -> Self
pub fn feature_generation<S: Into<String>>(reason: S) -> Self
Create a new feature generation error
Sourcepub fn code_optimization<S: Into<String>>(reason: S) -> Self
pub fn code_optimization<S: Into<String>>(reason: S) -> Self
Create a new code optimization error
Sourcepub fn file_operation<S: Into<String>>(operation: S, path: S) -> Self
pub fn file_operation<S: Into<String>>(operation: S, path: S) -> Self
Create a new file operation error
Sourcepub fn template_not_found<S: Into<String>>(name: S) -> Self
pub fn template_not_found<S: Into<String>>(name: S) -> Self
Create a new template not found error
Sourcepub fn dependency_resolution<S: Into<String>>(dependency: S) -> Self
pub fn dependency_resolution<S: Into<String>>(dependency: S) -> Self
Create a new dependency resolution error
Sourcepub fn build_system<S: Into<String>>(message: S) -> Self
pub fn build_system<S: Into<String>>(message: S) -> Self
Create a new build system error
Sourcepub fn validation<S: Into<String>>(message: S) -> Self
pub fn validation<S: Into<String>>(message: S) -> Self
Create a new validation error