Graphite/document-legacy/src/error.rs

14 lines
274 B
Rust

use super::LayerId;
/// A set of different errors that can occur when using this crate.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum DocumentError {
LayerNotFound(Vec<LayerId>),
InvalidPath,
IndexOutOfBounds,
NotFolder,
NotShape,
NotLayer,
InvalidFile(String),
}