public static class XMPPException.XMPPErrorException extends XMPPException
StanzaError
by calling getStanzaError()
.XMPPException.FailedNonzaException, XMPPException.StreamErrorException, XMPPException.XMPPErrorException
Constructor and Description |
---|
XMPPErrorException(StanzaError.Builder xmppErrorBuilder)
Deprecated.
Use
#XMPPErrorException(Stanza, StanzaError) instead. |
XMPPErrorException(Stanza stanza,
StanzaError error)
Creates a new XMPPErrorException with the XMPPError that was the root case of the exception.
|
XMPPErrorException(Stanza stanza,
StanzaError error,
Stanza request)
Creates a new XMPPErrorException with the XMPPError that was the root case of the exception.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
Stanza |
getRequest()
Get the request which triggered the error response causing this exception.
|
StanzaError |
getStanzaError()
Returns the stanza error extension element associated with this exception.
|
StanzaError |
getXMPPError()
Deprecated.
use
getStanzaError() instead. |
static void |
ifHasErrorThenThrow(Stanza packet) |
static void |
ifHasErrorThenThrow(Stanza packet,
Stanza request) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@Deprecated public XMPPErrorException(StanzaError.Builder xmppErrorBuilder)
#XMPPErrorException(Stanza, StanzaError)
instead.xmppErrorBuilder
- public XMPPErrorException(Stanza stanza, StanzaError error)
stanza
- stanza that contained the exception.error
- the root cause of the exception.public XMPPErrorException(Stanza stanza, StanzaError error, Stanza request)
request
- the request which triggered the error.stanza
- stanza that contained the exception.error
- the root cause of the exception.@Deprecated public StanzaError getXMPPError()
getStanzaError()
instead.public StanzaError getStanzaError()
public Stanza getRequest()
null
.public String getMessage()
getMessage
in class Throwable
public static void ifHasErrorThenThrow(Stanza packet) throws XMPPException.XMPPErrorException
XMPPException.XMPPErrorException
public static void ifHasErrorThenThrow(Stanza packet, Stanza request) throws XMPPException.XMPPErrorException
XMPPException.XMPPErrorException