pub enum CommyError {
Show 24 variants
WebSocketError(String),
ConnectionLost(String),
AuthenticationFailed(String),
Unauthorized(String),
NotFound(String),
ServiceNotFound(String),
TenantNotFound(String),
AlreadyExists(String),
PermissionDenied(String),
InvalidRequest(String),
InvalidMessage(String),
SerializationError(Error),
MessagePackError(Error),
MessagePackDecodeError(Error),
Timeout,
ChannelError(String),
InvalidState(String),
MemoryMappingError(String),
FileError(Error),
WatcherError(String),
VariableNotFound(String),
InvalidOffset(String),
SimdError(String),
Other(String),
}Expand description
Errors that can occur when using the Commy client SDK
Variants§
WebSocketError(String)
WebSocket connection error
ConnectionLost(String)
Connection lost or disconnected
AuthenticationFailed(String)
Authentication failed
Unauthorized - invalid credentials
NotFound(String)
Resource not found
ServiceNotFound(String)
Service not found
TenantNotFound(String)
Tenant not found
AlreadyExists(String)
Resource already exists
PermissionDenied(String)
Permission denied
InvalidRequest(String)
Invalid request parameters
InvalidMessage(String)
Invalid message format
SerializationError(Error)
Serialization error
MessagePackError(Error)
MessagePack error
MessagePackDecodeError(Error)
MessagePack decode error
Timeout
Operation timeout
ChannelError(String)
Channel send error
InvalidState(String)
Invalid state
MemoryMappingError(String)
Memory mapping error
FileError(Error)
File I/O error
WatcherError(String)
File watcher error
VariableNotFound(String)
Variable not found in file
InvalidOffset(String)
Invalid variable offset
SimdError(String)
SIMD operation error
Other(String)
Generic error
Trait Implementations§
Source§impl Debug for CommyError
impl Debug for CommyError
Source§impl Display for CommyError
impl Display for CommyError
Source§impl Error for CommyError
impl Error for CommyError
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<Error> for CommyError
impl From<Error> for CommyError
Source§impl From<Error> for CommyError
impl From<Error> for CommyError
Source§impl From<Error> for CommyError
impl From<Error> for CommyError
Source§impl From<Error> for CommyError
impl From<Error> for CommyError
Source§impl From<Error> for CommyError
impl From<Error> for CommyError
Auto Trait Implementations§
impl Freeze for CommyError
impl !RefUnwindSafe for CommyError
impl Send for CommyError
impl Sync for CommyError
impl Unpin for CommyError
impl UnsafeUnpin for CommyError
impl !UnwindSafe for CommyError
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