#[non_exhaustive]pub enum CommonError {
NoSuchInterface = 0,
NoSuchMethod = 1,
UnauthorizedCaller = 2,
MalformedArguments = 3,
MethodRemoved = 4,
FeatureNotSupported = 5,
}
Expand description
List of possible common errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoSuchInterface = 0
The interface is absent in the service.
NoSuchMethod = 1
The method is absent in the service.
This caller is not authorized to call this method.
MalformedArguments = 3
Malformed arguments for calling a service interface method.
MethodRemoved = 4
Method with provided ID existed in the past, but now is removed.
FeatureNotSupported = 5
Transition between the provided service states is not supported by the runtime.
Implementations§
Source§impl CommonError
impl CommonError
Sourcepub fn malformed_arguments(cause: impl Display) -> ExecutionError
pub fn malformed_arguments(cause: impl Display) -> ExecutionError
Creates a MalformedArguments
error with the user-provided error cause.
The cause does not need to include the error location; this information is added
by the framework automatically.
Trait Implementations§
Source§impl Clone for CommonError
impl Clone for CommonError
Source§fn clone(&self) -> CommonError
fn clone(&self) -> CommonError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CommonError
impl Debug for CommonError
Source§impl Display for CommonError
impl Display for CommonError
Source§impl ExecutionFail for CommonError
impl ExecutionFail for CommonError
Source§fn description(&self) -> String
fn description(&self) -> String
Extracts the human-readable error description.
Source§fn with_description(&self, description: impl Display) -> ExecutionError
fn with_description(&self, description: impl Display) -> ExecutionError
Creates an error with an externally provided description. The default implementation
takes the
description
as is; implementations can redefine this to wrap it in
an error-specific wrapper.Source§impl From<CommonError> for ExecutionError
impl From<CommonError> for ExecutionError
Source§fn from(inner: CommonError) -> Self
fn from(inner: CommonError) -> Self
Converts to this type from the input type.
Source§impl Hash for CommonError
impl Hash for CommonError
Source§impl Ord for CommonError
impl Ord for CommonError
Source§fn cmp(&self, other: &CommonError) -> Ordering
fn cmp(&self, other: &CommonError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CommonError
impl PartialEq for CommonError
Source§impl PartialOrd for CommonError
impl PartialOrd for CommonError
impl Copy for CommonError
impl Eq for CommonError
impl StructuralPartialEq for CommonError
Auto Trait Implementations§
impl Freeze for CommonError
impl RefUnwindSafe for CommonError
impl Send for CommonError
impl Sync for CommonError
impl Unpin for CommonError
impl UnwindSafe for CommonError
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