22 lines
524 B
Rust
22 lines
524 B
Rust
use thiserror::Error;
|
|
|
|
#[derive(Debug, Error)]
|
|
pub enum BundleError {
|
|
#[error("unknown loader '{0}' in bundles manifest")]
|
|
UnknownLoader(String),
|
|
|
|
#[error("invalid loader value '{0}' in bundles manifest")]
|
|
InvalidLoader(i64),
|
|
|
|
#[error("bundle path has no file name: {0}")]
|
|
InvalidPath(String),
|
|
|
|
#[error("failed to parse polymrpack manifest")]
|
|
InvalidManifest,
|
|
|
|
#[error("bundle file missing at {0}")]
|
|
MissingFile(String),
|
|
|
|
#[error("bundle not found: {0}")]
|
|
NotFound(String),
|
|
}
|