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 |
---|---|
String |
getMessage() |
XMPPError |
getXMPPError()
Returns the XMPPError associated with this exception, or null if there isn't
one.
|
static void |
ifHasErrorThenThrow(Stanza packet) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@Deprecated public XMPPErrorException(XMPPError.Builder xmppErrorBuilder)
#XMPPErrorException(Stanza, XMPPError)
instead.xmppErrorBuilder
- public XMPPErrorException(Stanza stanza, XMPPError error)
error
- the root cause of the exception.public XMPPError getXMPPError()
public String getMessage()
getMessage
in class Throwable
public static void ifHasErrorThenThrow(Stanza packet) throws XMPPException.XMPPErrorException
XMPPException.XMPPErrorException