1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! # Error Handling
//!
//! This module defines the error types and result wrappers used throughout the library.
//! It centralizes error handling to provide consistent and meaningful error messages
//! for various failure scenarios that might occur during glTF creation and export.
//!
//! The `GltfError` enum covers errors from various sources including:
//! - I/O operations
//! - JSON serialization/deserialization
//! - Invalid data or parameters
//! - Texture processing issues
//!
//! The module also provides a convenient `Result` type alias for functions
//! that may return a `GltfError`.
use io;
use Error;
use cratetexture;
/// Comprehensive error type for glTF export operations
/// Result type for glTF export operations
pub type Result<T> = Result;