public final class StreamError extends Object implements StreamElement
<stream:error/> element.
This class is immutable.
| Constructor and Description |
|---|
StreamError(Condition condition) |
StreamError(Condition condition,
String text,
Locale language,
Object extension) |
| Modifier and Type | Method and Description |
|---|---|
Condition |
getCondition()
Gets the defined stream error condition or
Condition.UNDEFINED_CONDITION if the condition is unknown. |
Object |
getExtension()
Gets the application specific condition, if any.
|
Locale |
getLanguage()
Gets the language of the error text.
|
String |
getText()
Gets the optional error text.
|
String |
toString() |
public StreamError(Condition condition)
public final Locale getLanguage()
public final String getText()
public final Object getExtension()
public final Condition getCondition()
Condition.UNDEFINED_CONDITION if the condition is unknown.Copyright © 2014–2018 XMPP.rocks. All rights reserved.