2026-04-08 23:15:48 +02:00
|
|
|
use libchat::ChatError;
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
2026-06-08 21:55:33 +02:00
|
|
|
pub enum ClientError {
|
2026-04-08 23:15:48 +02:00
|
|
|
#[error(transparent)]
|
|
|
|
|
Chat(#[from] ChatError),
|
2026-06-22 10:38:17 -07:00
|
|
|
#[error("received credential could not be parsed")]
|
|
|
|
|
BadlyFormedCredential,
|
2026-07-03 02:17:45 +08:00
|
|
|
#[error("failed to start the transport: {0}")]
|
|
|
|
|
Transport(String),
|
2026-07-03 23:18:10 +02:00
|
|
|
#[error("account resolution failed: {0}")]
|
|
|
|
|
AccountResolution(String),
|
|
|
|
|
#[error("device bundle publish failed: {0}")]
|
|
|
|
|
BundlePublish(String),
|
2026-04-08 23:15:48 +02:00
|
|
|
}
|