geam_core/embedding/project/error.rs
1use crate::{HostRegistrationError, ProjectError};
2use thiserror::Error;
3
4/// A failure while registering providers or loading a hosted Gleam project.
5#[derive(Debug, Error)]
6pub enum HostedProjectError {
7 /// Static host provider registration failed.
8 #[error(transparent)]
9 HostRegistration(#[from] HostRegistrationError),
10
11 /// The selected Gleam project failed to load or compile.
12 #[error(transparent)]
13 Project(#[from] ProjectError),
14}