diff options
author | 2024-12-02 21:50:15 +0000 | |
---|---|---|
committer | 2024-12-02 21:50:15 +0000 | |
commit | be198ca15bbaf633c1535db5bae7091520546aed (patch) | |
tree | e7c33435851c4421bfb950818b285a00e63d93a0 /src/error.rs | |
parent | 859a19820d69eca5fca87fc01acad72a6355f97e (diff) | |
download | luz-be198ca15bbaf633c1535db5bae7091520546aed.tar.gz luz-be198ca15bbaf633c1535db5bae7091520546aed.tar.bz2 luz-be198ca15bbaf633c1535db5bae7091520546aed.zip |
implement bind
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 5 |
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)] |