Trait account_common::ResultExt
source · pub trait ResultExt<T, E> {
// Required method
fn account_manager_error(
self,
api_error: AccountApiError
) -> Result<T, AccountManagerError>;
}
Expand description
An extension trait to simplify conversion of results based on general errors to AccountManagerErrors.
Required Methods§
sourcefn account_manager_error(
self,
api_error: AccountApiError
) -> Result<T, AccountManagerError>
fn account_manager_error( self, api_error: AccountApiError ) -> Result<T, AccountManagerError>
Wraps the error in a non-fatal AccountManagerError
with the supplied AccountApiError
.