#[non_exhaustive]pub enum HwpxErrorCode {
Zip = 4_000,
InvalidMimetype = 4_001,
MissingFile = 4_002,
XmlParse = 4_003,
InvalidAttribute = 4_004,
IndexOutOfBounds = 4_005,
InvalidStructure = 4_006,
Io = 4_007,
Core = 4_008,
Foundation = 4_009,
XmlSerialize = 4_010,
}Expand description
Error codes for smithy-hwpx (4000-4099 range).
These follow the same convention as Foundation (1000-1099), Core (2000-2099), and Blueprint (3000-3099).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Zip = 4_000
Generic ZIP failure.
InvalidMimetype = 4_001
Invalid mimetype in archive.
MissingFile = 4_002
Required file missing from archive.
XmlParse = 4_003
XML deserialization failure.
InvalidAttribute = 4_004
Bad attribute value during conversion.
IndexOutOfBounds = 4_005
Style index reference out of range.
InvalidStructure = 4_006
Structural issue.
Io = 4_007
I/O failure.
Core = 4_008
Propagated Core error.
Foundation = 4_009
Propagated Foundation error.
XmlSerialize = 4_010
XML serialization failure.
Trait Implementations§
Source§impl Clone for HwpxErrorCode
impl Clone for HwpxErrorCode
Source§fn clone(&self) -> HwpxErrorCode
fn clone(&self) -> HwpxErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HwpxErrorCode
impl Debug for HwpxErrorCode
Source§impl Display for HwpxErrorCode
impl Display for HwpxErrorCode
Source§impl Hash for HwpxErrorCode
impl Hash for HwpxErrorCode
Source§impl PartialEq for HwpxErrorCode
impl PartialEq for HwpxErrorCode
impl Copy for HwpxErrorCode
impl Eq for HwpxErrorCode
impl StructuralPartialEq for HwpxErrorCode
Auto Trait Implementations§
impl Freeze for HwpxErrorCode
impl RefUnwindSafe for HwpxErrorCode
impl Send for HwpxErrorCode
impl Sync for HwpxErrorCode
impl Unpin for HwpxErrorCode
impl UnwindSafe for HwpxErrorCode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.