pub enum AuraError {
Invalid {
message: String,
},
NotFound {
message: String,
},
PermissionDenied {
message: String,
},
Crypto {
message: String,
},
Network {
message: String,
},
Serialization {
message: String,
},
Storage {
message: String,
},
Internal {
message: String,
},
Terminal(String),
}Expand description
Unified error type for all Aura operations
Variants§
Invalid
Invalid input or configuration
NotFound
Resource not found
PermissionDenied
Permission denied
Crypto
Cryptographic operation failed
Network
Network or transport error
Serialization
Serialization/deserialization error
Storage
Storage operation failed
Internal
Internal system error
Terminal(String)
Terminal operation error
Implementations§
Source§impl AuraError
impl AuraError
Sourcepub fn permission_denied(message: impl Into<String>) -> Self
pub fn permission_denied(message: impl Into<String>) -> Self
Create a permission denied error
Sourcepub fn serialization(message: impl Into<String>) -> Self
pub fn serialization(message: impl Into<String>) -> Self
Create a serialization error
Sourcepub fn coordination_failed(message: impl Into<String>) -> Self
pub fn coordination_failed(message: impl Into<String>) -> Self
Create a coordination failed error
Sourcepub fn budget_exceeded(message: impl Into<String>) -> Self
pub fn budget_exceeded(message: impl Into<String>) -> Self
Create a budget exceeded error
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Check if this error is retryable
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuraError
impl<'de> Deserialize<'de> for AuraError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Error for AuraError
impl Error for AuraError
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()
Source§impl From<AuraError> for AuthorizationError
impl From<AuraError> for AuthorizationError
Source§impl From<AuraError> for ReliabilityError
impl From<AuraError> for ReliabilityError
Source§impl From<AuraError> for SystemError
impl From<AuraError> for SystemError
Source§impl From<AuthorizationError> for AuraError
impl From<AuthorizationError> for AuraError
Source§fn from(err: AuthorizationError) -> Self
fn from(err: AuthorizationError) -> Self
Converts to this type from the input type.
Source§impl From<ChoreographyError> for AuraError
impl From<ChoreographyError> for AuraError
Source§fn from(err: ChoreographyError) -> Self
fn from(err: ChoreographyError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for AuraError
impl From<DecodeError> for AuraError
Source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<FromHexError> for AuraError
impl From<FromHexError> for AuraError
Source§fn from(err: FromHexError) -> Self
fn from(err: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<NetworkError> for AuraError
impl From<NetworkError> for AuraError
Source§fn from(err: NetworkError) -> Self
fn from(err: NetworkError) -> Self
Converts to this type from the input type.
Source§impl From<OwnershipError> for AuraError
impl From<OwnershipError> for AuraError
Source§fn from(value: OwnershipError) -> Self
fn from(value: OwnershipError) -> Self
Converts to this type from the input type.
Source§impl From<QueryError> for AuraError
impl From<QueryError> for AuraError
Source§fn from(err: QueryError) -> Self
fn from(err: QueryError) -> Self
Converts to this type from the input type.
Source§impl From<SerializationError> for AuraError
impl From<SerializationError> for AuraError
Source§fn from(err: SerializationError) -> Self
fn from(err: SerializationError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for AuraError
impl From<StorageError> for AuraError
Source§fn from(err: StorageError) -> Self
fn from(err: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<TerminalError> for AuraError
impl From<TerminalError> for AuraError
Source§fn from(err: TerminalError) -> Self
fn from(err: TerminalError) -> Self
Converts to this type from the input type.
Source§impl From<TimeoutBudgetError> for AuraError
impl From<TimeoutBudgetError> for AuraError
Source§fn from(value: TimeoutBudgetError) -> Self
fn from(value: TimeoutBudgetError) -> Self
Converts to this type from the input type.
Source§impl From<TransportError> for AuraError
impl From<TransportError> for AuraError
Source§fn from(err: TransportError) -> Self
fn from(err: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuraError
impl RefUnwindSafe for AuraError
impl Send for AuraError
impl Sync for AuraError
impl Unpin for AuraError
impl UnsafeUnpin for AuraError
impl UnwindSafe for AuraError
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