pub enum AltiumError {
Io(Error),
InvalidParameter(String),
InvalidCoordinate(String),
InvalidUnit(String),
InvalidLayer(String),
InvalidRecord(String),
MissingData(String),
Decompression(String),
Encoding(String),
UnexpectedEof,
Parse(String),
Validation(String),
}Expand description
Main error type for Altium file operations.
Variants§
Io(Error)
I/O error when reading/writing files.
InvalidParameter(String)
Invalid parameter format.
InvalidCoordinate(String)
Invalid coordinate format.
InvalidUnit(String)
Invalid unit format.
InvalidLayer(String)
Invalid layer.
InvalidRecord(String)
Invalid record type.
MissingData(String)
Missing required data.
Decompression(String)
Decompression error (zlib).
Encoding(String)
Encoding error (Windows-1252 or UTF-8).
UnexpectedEof
Unexpected end of stream.
Parse(String)
Generic parse error.
Validation(String)
Validation error for invalid data values.
Trait Implementations§
Source§impl Debug for AltiumError
impl Debug for AltiumError
Source§impl Display for AltiumError
impl Display for AltiumError
Source§impl Error for AltiumError
impl Error for AltiumError
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 AltiumError
impl !RefUnwindSafe for AltiumError
impl Send for AltiumError
impl Sync for AltiumError
impl Unpin for AltiumError
impl !UnwindSafe for AltiumError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more