pub enum BankingError {
Show 21 variants
EmptyStatement,
BalanceMismatch {
expected: Decimal,
computed: Decimal,
},
NegativeAmount,
NonPositiveAmount,
OverAllocated {
line_net: Decimal,
already: Decimal,
attempted: Decimal,
},
SettlementOverCleared {
settlement_amount: Decimal,
already_cleared: Decimal,
attempted: Decimal,
},
UnbalancedPost,
UnsupportedCurrency(String),
TransactionNotFound(Uuid),
AccountNotFound(Uuid),
GlRejected {
code: String,
message: String,
},
ReconcileRefused {
code: String,
message: String,
},
PresetNotFound(Uuid),
PresetInactive(Uuid),
PresetMissingTolerance(Uuid),
PresetMissingDaysWindow(Uuid),
UnknownMatchOn(String),
CandidatePoolRefused(String),
InvalidIban(String),
IbanUnknownCountry(String),
Db(Error),
}Variants§
EmptyStatement
BalanceMismatch
NegativeAmount
NonPositiveAmount
OverAllocated
SettlementOverCleared
UnbalancedPost
UnsupportedCurrency(String)
TransactionNotFound(Uuid)
AccountNotFound(Uuid)
GlRejected
ReconcileRefused
The reconciliation-graph sink refused the clearing’s edge (unposted payment journal, a non-reconcilable clearing account, or a clamp disagreement). Clearing is fail-closed on this: the clearance row and the allocation advance roll back with the refused edge.
PresetNotFound(Uuid)
PresetInactive(Uuid)
PresetMissingTolerance(Uuid)
PresetMissingDaysWindow(Uuid)
UnknownMatchOn(String)
CandidatePoolRefused(String)
The candidate-pool read refused: the payment schema is absent (standalone module database, mis-composed host). Ordering ranks nothing rather than present fiction as candidates.
InvalidIban(String)
An IBAN-shaped account number whose country is KNOWN but whose length/structure or mod-97 checksum is wrong.
IbanUnknownCountry(String)
An IBAN-shaped account number claiming a country that is not in the reviewed IBAN
registry — refused fail-closed (distinct from InvalidIban so the escape-able
refusal is visible as its own error code).
Db(Error)
Implementations§
Source§impl BankingError
impl BankingError
Trait Implementations§
Source§impl Debug for BankingError
impl Debug for BankingError
Source§impl Display for BankingError
impl Display for BankingError
Source§impl Error for BankingError
impl Error for BankingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for BankingError
impl !UnwindSafe for BankingError
impl Freeze for BankingError
impl Send for BankingError
impl Sync for BankingError
impl Unpin for BankingError
impl UnsafeUnpin for BankingError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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