pub enum MtError {
InvalidBlockStructure(String),
InvalidBlockContent {
block: u8,
detail: String,
},
MissingBlock(u8),
MissingField {
tag: String,
message_type: String,
},
InvalidFieldValue {
tag: String,
detail: String,
},
}Expand description
Errors that can occur when parsing SWIFT MT messages.
Variants§
InvalidBlockStructure(String)
The top-level block structure is malformed (e.g., unmatched braces).
InvalidBlockContent
The content of a specific block cannot be parsed.
MissingBlock(u8)
A required block is absent from the message.
MissingField
A required field is missing from the message body.
InvalidFieldValue
A field’s value cannot be interpreted according to the SWIFT spec.
Trait Implementations§
Source§impl Error for MtError
impl Error for MtError
1.30.0 · 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 MtError
impl RefUnwindSafe for MtError
impl Send for MtError
impl Sync for MtError
impl Unpin for MtError
impl UnsafeUnpin for MtError
impl UnwindSafe for MtError
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