@Deprecated public class StreamErrorException extends XmppException
Represents a stream error.
StreamError
,
4.9. Stream Errors,
Serialized FormConstructor and Description |
---|
StreamErrorException(StreamError streamError)
Deprecated.
Constructs a stanza exception.
|
StreamErrorException(StreamError streamError,
java.lang.Throwable cause)
Deprecated.
Constructs a stream error exception with a cause.
|
Modifier and Type | Method and Description |
---|---|
Condition |
getCondition()
Deprecated.
Gets the defined error condition.
|
StreamError |
getError()
Deprecated.
Gets the stream error.
|
public StreamErrorException(StreamError streamError)
Constructs a stanza exception.
streamError
- The underlying stream error.public StreamErrorException(StreamError streamError, java.lang.Throwable cause)
Constructs a stream error exception with a cause.
streamError
- The underlying stream error.cause
- The cause.public final StreamError getError()
Gets the stream error.
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.