@Deprecated public class StanzaException extends XmppException
A stanza exception represents a stanza error. It should be thrown, if a request (e.g. an IQ stanza) returned a stanza error.
Constructor and Description |
---|
StanzaException(Stanza stanza)
Deprecated.
Constructs a stanza exception.
|
Modifier and Type | Method and Description |
---|---|
Condition |
getCondition()
Deprecated.
Gets the defined error condition.
|
StanzaError |
getError()
Deprecated.
Gets the stanza error, i.e. the
<error/> element. |
Stanza |
getStanza()
Deprecated.
Gets the stanza, which includes the error.
|
public StanzaException(Stanza stanza)
Constructs a stanza exception.
stanza
- The underlying stanza.public final Stanza getStanza()
Gets the stanza, which includes the error.
public final StanzaError getError()
Gets the stanza error, i.e. the <error/>
element.
public final Condition getCondition()
Gets the defined error condition. If the condition is unknown, Condition.UNDEFINED_CONDITION
is returned. This is a shortcut for getError().getCondition()
.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.