feat(error): introduce worker panic and subscription disconnection errors
This commit is contained in:
1 parent
3ba4f56221
commit
3f7afd4f7a
1 file changed
+8
@@ -45,4 +45,12 @@ pub enum ClientError {
|
||||
PendingLimitExceeded { limit: usize },
|
||||
#[error("invalid configuration: {reason}")]
|
||||
InvalidConfig { reason: String },
|
||||
#[error("managed client worker thread panicked")]
|
||||
WorkerPanicked,
|
||||
}
|
||||
|
||||
#[derive(Debug, Error, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum EventSubscriptionError {
|
||||
#[error("event subscription is disconnected")]
|
||||
Disconnected,
|
||||
}
|
||||
Reference in new issue
Block a user