pub enum DxfError {
Show 17 variants
Io(Error),
UnsupportedVersion(String),
Compression(String),
Parse(String),
InvalidDxfCode(i32),
InvalidHandle(u64),
ObjectNotFound(u64),
InvalidEntityType(String),
ChecksumMismatch {
expected: u32,
actual: u32,
},
InvalidHeader(String),
InvalidFormat(String),
InvalidSentinel(String),
Decompression(String),
Decryption(String),
Encoding(String),
NotImplemented(String),
Custom(String),
}Expand description
Main error type for DXF-Tools-RS operations
Variants§
Io(Error)
IO error occurred during file operations
UnsupportedVersion(String)
Unsupported CAD file version
Compression(String)
Error during compression/decompression
Parse(String)
Error parsing CAD file format
InvalidDxfCode(i32)
Invalid DXF code encountered
InvalidHandle(u64)
Invalid handle reference
ObjectNotFound(u64)
Object not found in document
InvalidEntityType(String)
Invalid entity type
ChecksumMismatch
CRC checksum mismatch
InvalidHeader(String)
Invalid file header
InvalidFormat(String)
Invalid file format
InvalidSentinel(String)
Invalid sentinel in file
Decompression(String)
Decompression error
Decryption(String)
Decryption error
Encoding(String)
Encoding error
NotImplemented(String)
Feature not yet implemented
Custom(String)
Generic error with custom message
Trait Implementations§
Source§impl Error for DxfError
impl Error for DxfError
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()
Auto Trait Implementations§
impl Freeze for DxfError
impl !RefUnwindSafe for DxfError
impl Send for DxfError
impl Sync for DxfError
impl Unpin for DxfError
impl !UnwindSafe for DxfError
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