feat(error): introduce worker panic and subscription disconnection errors
This commit is contained in:
1 file changed
+8
@@ -45,4 +45,12 @@ pub enum ClientError {
|
|||||||
PendingLimitExceeded { limit: usize },
|
PendingLimitExceeded { limit: usize },
|
||||||
#[error("invalid configuration: {reason}")]
|
#[error("invalid configuration: {reason}")]
|
||||||
InvalidConfig { reason: String },
|
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