Skip to main content

ic_asset/error/
get_asset_config.rs

1use crate::error::fs::NoParentPathError;
2use std::path::PathBuf;
3use thiserror::Error;
4
5/// Errors related to getting asset configuration.
6#[derive(Error, Debug)]
7pub enum GetAssetConfigError {
8    /// An asset exists, but it does not have a configuration.
9    #[error("No configuration found for asset '{0}'")]
10    AssetConfigNotFound(PathBuf),
11
12    /// The path to an asset was invalid.
13    #[error("invalid asset path")]
14    InvalidPath(#[from] NoParentPathError),
15}