Struct account_common::AccountManagerError
source · pub struct AccountManagerError {
pub api_error: AccountApiError,
pub fatal: bool,
pub cause: Option<Error>,
}
Expand description
An Error type for problems encountered in the account manager and account handler. Each error contains the fuchsia.identity.account.Error that should be reported back to the client and an indication of whether it is fatal.
Fields§
§api_error: AccountApiError
The most appropriate fuchsia.identity.account.Error
to describe this problem.
fatal: bool
Whether this error should be considered fatal, i.e. whether it should terminate processing of all requests on the current channel.
cause: Option<Error>
The root cause of this error, if available.
Implementations§
source§impl AccountManagerError
impl AccountManagerError
sourcepub fn new(api_error: AccountApiError) -> Self
pub fn new(api_error: AccountApiError) -> Self
Constructs a new non-fatal error based on the supplied fuchsia.identity.account.Error
.
sourcepub fn with_cause<T: Into<Error>>(self, cause: T) -> Self
pub fn with_cause<T: Into<Error>>(self, cause: T) -> Self
Sets a cause on the current error.
Trait Implementations§
source§impl Debug for AccountManagerError
impl Debug for AccountManagerError
source§impl Display for AccountManagerError
impl Display for AccountManagerError
source§impl Error for AccountManagerError
impl Error for AccountManagerError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for AccountManagerError
impl From<Error> for AccountManagerError
source§fn from(authentication_error: AuthenticationApiError) -> Self
fn from(authentication_error: AuthenticationApiError) -> Self
Converts to this type from the input type.
source§impl From<Error> for AccountManagerError
impl From<Error> for AccountManagerError
source§fn from(api_error: AccountApiError) -> Self
fn from(api_error: AccountApiError) -> Self
Converts to this type from the input type.
source§impl From<Error> for AccountManagerError
impl From<Error> for AccountManagerError
source§impl Into<Error> for AccountManagerError
impl Into<Error> for AccountManagerError
source§fn into(self) -> AccountApiError
fn into(self) -> AccountApiError
Converts this type into the (usually inferred) input type.