pub enum MesherError {
Zip(ZipError),
Json(Error),
Image(ImageError),
Io(Error),
ResourceNotFound(String),
InvalidResourcePack(String),
ModelResolution(String),
BlockstateResolution(String),
UnresolvedTexture(String),
ModelInheritanceTooDeep(String),
AtlasBuild(String),
Export(String),
}Expand description
Main error type for schematic meshing operations.
Variants§
Zip(ZipError)
Failed to read or parse a ZIP archive.
Json(Error)
Failed to parse JSON data.
Image(ImageError)
Failed to read or process an image.
Io(Error)
I/O error during file operations.
ResourceNotFound(String)
Resource not found in the resource pack.
InvalidResourcePack(String)
Invalid resource pack structure.
ModelResolution(String)
Failed to resolve a block model.
BlockstateResolution(String)
Failed to resolve a blockstate.
UnresolvedTexture(String)
Texture reference could not be resolved.
ModelInheritanceTooDeep(String)
Model inheritance chain too deep (circular reference protection).
AtlasBuild(String)
Failed to build texture atlas.
Export(String)
Failed to export mesh.
Trait Implementations§
Source§impl Debug for MesherError
impl Debug for MesherError
Source§impl Display for MesherError
impl Display for MesherError
Source§impl Error for MesherError
impl Error for MesherError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for MesherError
impl From<Error> for MesherError
Source§impl From<Error> for MesherError
impl From<Error> for MesherError
Source§impl From<ImageError> for MesherError
impl From<ImageError> for MesherError
Source§fn from(source: ImageError) -> Self
fn from(source: ImageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MesherError
impl !RefUnwindSafe for MesherError
impl Send for MesherError
impl Sync for MesherError
impl Unpin for MesherError
impl !UnwindSafe for MesherError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more