public static class XMPPException.XMPPErrorException extends XMPPException
XMPPException.FailedNonzaException, XMPPException.StreamErrorException, XMPPException.XMPPErrorException
Constructor and Description |
---|
XMPPErrorException(Stanza stanza,
XMPPError error)
Creates a new XMPPErrorException with the XMPPError that was the root case of the exception.
|
XMPPErrorException(XMPPError.Builder xmppErrorBuilder)
Deprecated.
Use
#XMPPErrorException(Stanza, XMPPError) instead. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage() |
XMPPError |
getXMPPError()
Returns the XMPPError associated with this exception, or null if there isn't
one.
|
static void |
ifHasErrorThenThrow(Stanza packet) |
@Deprecated public XMPPErrorException(XMPPError.Builder xmppErrorBuilder)
#XMPPErrorException(Stanza, XMPPError)
instead.xmppErrorBuilder
- public XMPPErrorException(Stanza stanza, XMPPError error)
stanza
- stanza that contained the exception.error
- the root cause of the exception.public XMPPError getXMPPError()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public static void ifHasErrorThenThrow(Stanza packet) throws XMPPException.XMPPErrorException
XMPPException.XMPPErrorException