public final class StanzaException extends XmppException
| Constructor and Description |
|---|
StanzaException(Stanza stanza)
Constructs a stanza exception.
|
| Modifier and Type | Method and Description |
|---|---|
Condition |
getCondition()
Gets the defined error condition.
|
StanzaError |
getError()
Gets the stanza error, i.e. the
<error/> element. |
Stanza |
getStanza()
Gets the stanza, which includes the error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic StanzaException(Stanza stanza)
stanza - The underlying stanza.public final Stanza getStanza()
public final StanzaError getError()
<error/> element.public final Condition getCondition()
Condition.UNDEFINED_CONDITION is returned.
This is a shortcut for getError().getCondition().Copyright © 2014–2017 XMPP.rocks. All rights reserved.