pub enum FacilityError {
Show 28 variants
InsufficientFunds {
available: Money,
requested: Money,
},
LtvBreach {
ltv: Rate,
threshold: Rate,
},
InvalidPaymentAmount {
amount: Money,
},
FacilityNotActive {
status: FacilityStatus,
},
OverdraftLimitExceeded {
limit: Money,
requested: Money,
},
CreditLimitExceeded {
limit: Money,
requested: Money,
},
MilestoneNotFound {
id: Uuid,
},
MilestoneNotApproved {
name: String,
},
InvalidConfiguration {
message: String,
},
LiquidationInProgress,
PaymentScheduleNotApplicable,
CollateralRequired,
NoCollateral,
InvalidDate {
message: String,
},
CalculationError {
message: String,
},
FacilityAlreadySettled,
FacilityChargedOff,
InvalidInterestRate {
rate: Rate,
},
PaymentBelowMinimum {
minimum: Money,
provided: Money,
},
OperationNotSupported,
DrawPeriodEnded,
InvalidDrawAmount {
amount: Money,
},
BelowMinimumDrawdown {
minimum: Money,
requested: Money,
},
ExceedsCreditLimit {
available: Money,
requested: Money,
},
InvalidCollateral {
message: String,
},
InsufficientCollateral {
available: Decimal,
required: Decimal,
},
MarginCallExpired {
deadline: DateTime<Utc>,
current_time: DateTime<Utc>,
},
InvalidState {
current: String,
expected: String,
},
}Variants§
InsufficientFunds
LtvBreach
InvalidPaymentAmount
FacilityNotActive
Fields
§
status: FacilityStatusOverdraftLimitExceeded
CreditLimitExceeded
MilestoneNotFound
MilestoneNotApproved
InvalidConfiguration
LiquidationInProgress
PaymentScheduleNotApplicable
CollateralRequired
NoCollateral
InvalidDate
CalculationError
FacilityAlreadySettled
FacilityChargedOff
InvalidInterestRate
PaymentBelowMinimum
OperationNotSupported
DrawPeriodEnded
InvalidDrawAmount
BelowMinimumDrawdown
ExceedsCreditLimit
InvalidCollateral
InsufficientCollateral
MarginCallExpired
InvalidState
Trait Implementations§
Source§impl Debug for FacilityError
impl Debug for FacilityError
Source§impl Display for FacilityError
impl Display for FacilityError
Source§impl Error for FacilityError
impl Error for FacilityError
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 FacilityError
impl RefUnwindSafe for FacilityError
impl Send for FacilityError
impl Sync for FacilityError
impl Unpin for FacilityError
impl UnsafeUnpin for FacilityError
impl UnwindSafe for FacilityError
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