mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 15:28:04 +08:00
* Use builder pattern for widgets * Arguments to new function * Add node graph when dragging in image * Fix duplicate import * Skip processing under node graph frame if unused * Reduce node graph rerenders * DUPLICATE ALL frontend changes into other frontend * DUPLICATE more changes to another frontend * Code review * Allow importing SVG files as bitmaps Co-authored-by: Keavon Chambers <keavon@keavon.com>
24 lines
559 B
Rust
24 lines
559 B
Rust
use super::LayerId;
|
|
use crate::boolean_ops::BooleanOperationError;
|
|
|
|
/// 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,
|
|
NotAFolder,
|
|
NonReorderableSelection,
|
|
NotShape,
|
|
NotText,
|
|
NotNodeGraph,
|
|
InvalidFile(String),
|
|
BooleanOperationError(BooleanOperationError),
|
|
}
|
|
|
|
impl From<BooleanOperationError> for DocumentError {
|
|
fn from(err: BooleanOperationError) -> Self {
|
|
DocumentError::BooleanOperationError(err)
|
|
}
|
|
}
|