aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2024-12-02 21:50:15 +0000
committerLibravatar cel 🌸 <cel@bunny.garden>2024-12-02 21:50:15 +0000
commitbe198ca15bbaf633c1535db5bae7091520546aed (patch)
treee7c33435851c4421bfb950818b285a00e63d93a0 /src/error.rs
parent859a19820d69eca5fca87fc01acad72a6355f97e (diff)
downloadluz-be198ca15bbaf633c1535db5bae7091520546aed.tar.gz
luz-be198ca15bbaf633c1535db5bae7091520546aed.tar.bz2
luz-be198ca15bbaf633c1535db5bae7091520546aed.zip
implement bind
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index a1f853b..b5cf446 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -2,6 +2,7 @@ use std::str::Utf8Error;
use rsasl::mechname::MechanismNameError;
+use crate::stanza::client::error::Error as ClientError;
use crate::{jid::ParseError, stanza::sasl::Failure};
#[derive(Debug)]
@@ -22,12 +23,14 @@ pub enum Error {
Negotiation,
TlsRequired,
UnexpectedEnd,
- UnexpectedElement,
+ UnexpectedElement(peanuts::Element),
UnexpectedText,
XML(peanuts::Error),
SASL(SASLError),
JID(ParseError),
Authentication(Failure),
+ ClientError(ClientError),
+ MissingError,
}
#[derive(Debug)]