pub enum AchError {
InvalidRecordType(String),
InvalidLineLength(usize),
InvalidNumber {
field: &'static str,
source: ParseIntError,
},
InvalidStructure(String),
EmptyFile,
IncompleteBatch(String),
}Expand description
Errors that can occur during ACH file parsing.
Variants§
InvalidRecordType(String)
The record type is invalid or unsupported.
InvalidLineLength(usize)
The line length does not match the expected 94 characters.
InvalidNumber
A numeric field could not be parsed.
InvalidStructure(String)
The file structure is invalid (e.g., missing header or control records).
EmptyFile
The file is empty or contains no valid records.
IncompleteBatch(String)
A batch is missing required records.
Trait Implementations§
Source§impl Error for AchError
impl Error for AchError
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 AchError
impl RefUnwindSafe for AchError
impl Send for AchError
impl Sync for AchError
impl Unpin for AchError
impl UnwindSafe for AchError
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