@ -634,7 +635,7 @@ data StreamErrorInfo = StreamErrorInfo
@@ -634,7 +635,7 @@ data StreamErrorInfo = StreamErrorInfo
}deriving(Show,Eq)
-- | Signals an XMPP stream error or another unpredicted stream-related
-- situation.
-- situation. This error is fatal, and closes the XMPP stream.
dataXmppFailure=StreamErrorFailureStreamErrorInfo-- ^ An error XML stream
-- element has been
-- encountered.
@ -649,14 +650,19 @@ data XmppFailure = StreamErrorFailure StreamErrorInfo -- ^ An error XML stream
@@ -649,14 +650,19 @@ data XmppFailure = StreamErrorFailure StreamErrorInfo -- ^ An error XML stream
-- constructor wraps the
-- elements collected so
-- far.
|TlsErrorTLS.TLSError
|TlsNoServerSupport
|XmppNoStream
|TlsErrorTLS.TLSError-- ^ An error occurred in the
-- TLS layer
|TlsNoServerSupport-- ^ The server does not support
-- the use of TLS
|XmppNoStream-- ^ An action that required an active
-- stream were performed when the
-- 'StreamState' was 'Closed'
|TlsStreamSecured-- ^ Connection already secured
|XmppOtherFailure-- ^ Undefined condition. More
-- information should be available
-- in the log.
|XmppIOExceptionIOException
|XmppIOExceptionIOException-- ^ An 'IOException'
-- occurred
deriving(Show,Eq,Typeable)
instanceExceptionXmppFailure
@ -870,14 +876,14 @@ instance IsString Jid where
@@ -870,14 +876,14 @@ instance IsString Jid where
fromText::Text->MaybeJid
fromTextt=do
(l,d,r)<-eitherToMaybe$AP.parseOnlyjidPartst
fromStringsldr
fromTextsldr
where
eitherToMaybe=either(constNothing)Just
-- | Converts localpart, domainpart, and resourcepart strings to a JID. Runs the
-- appropriate stringprep profiles and validates the parts.