pub enum BasicError {
NotFound(String),
InvalidArgument(String),
NotAllowed(String),
PermissionDenied(String),
Internal(String),
}Expand description
A basic error that occurs while processing a WAMP message.
Variants§
NotFound(String)
A generic resource was not found.
WAMP defines standard URIs for not finding specific resource types. This error should only be used when the standard URI cannot be used.
InvalidArgument(String)
An invalid argument was passed.
NotAllowed(String)
The operation is not allowed based on process configuration.
PermissionDenied(String)
The operation is not allowed based on user permissions.
Internal(String)
Some internal error occurred.
Should only be used when there is no other error variant that describes the error, since the message is very vague and not very useful for debugging.
Implementations§
Source§impl BasicError
impl BasicError
Sourcepub fn uri_component(&self) -> &str
pub fn uri_component(&self) -> &str
The trailing URI component for the error.
Trait Implementations§
Source§impl Debug for BasicError
impl Debug for BasicError
Source§impl Display for BasicError
impl Display for BasicError
Source§impl Error for BasicError
impl Error for BasicError
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for BasicError
impl RefUnwindSafe for BasicError
impl Send for BasicError
impl Sync for BasicError
impl Unpin for BasicError
impl UnwindSafe for BasicError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more