pub enum FinanceError {
Commodity(CommodityError),
Split(SplitError),
Price(PriceError),
Transaction(TransactionError),
Account(AccountError),
Balance(BalanceError),
Report(ReportError),
DB(Error),
Internal(String),
}Variants§
Commodity(CommodityError)
Split(SplitError)
Price(PriceError)
Transaction(TransactionError)
Account(AccountError)
Balance(BalanceError)
Report(ReportError)
DB(Error)
Internal(String)
Trait Implementations§
Source§impl Debug for FinanceError
impl Debug for FinanceError
Source§impl Display for FinanceError
impl Display for FinanceError
Source§impl Error for FinanceError
impl Error for FinanceError
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()
Source§impl From<AccountError> for FinanceError
impl From<AccountError> for FinanceError
Source§fn from(source: AccountError) -> Self
fn from(source: AccountError) -> Self
Converts to this type from the input type.
Source§impl From<BalanceError> for FinanceError
impl From<BalanceError> for FinanceError
Source§fn from(source: BalanceError) -> Self
fn from(source: BalanceError) -> Self
Converts to this type from the input type.
Source§impl From<CommodityError> for FinanceError
impl From<CommodityError> for FinanceError
Source§fn from(source: CommodityError) -> Self
fn from(source: CommodityError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for FinanceError
impl From<Error> for FinanceError
Source§impl From<PriceError> for FinanceError
impl From<PriceError> for FinanceError
Source§fn from(source: PriceError) -> Self
fn from(source: PriceError) -> Self
Converts to this type from the input type.
Source§impl From<ReportError> for FinanceError
impl From<ReportError> for FinanceError
Source§fn from(source: ReportError) -> Self
fn from(source: ReportError) -> Self
Converts to this type from the input type.
Source§impl From<SplitError> for FinanceError
impl From<SplitError> for FinanceError
Source§fn from(source: SplitError) -> Self
fn from(source: SplitError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for FinanceError
impl From<TransactionError> for FinanceError
Source§fn from(source: TransactionError) -> Self
fn from(source: TransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FinanceError
impl !RefUnwindSafe for FinanceError
impl Send for FinanceError
impl Sync for FinanceError
impl Unpin for FinanceError
impl UnsafeUnpin for FinanceError
impl !UnwindSafe for FinanceError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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