public class XMPPException extends Exception
When a stream error occured, the server will send a stream error to the client before closing the connection. Stream errors are unrecoverable errors. When a stream error is sent to the client an XMPPException will be thrown containing the StreamError sent by the server.
XMPPError,
Serialized Form| Constructor and Description |
|---|
XMPPException()
Creates a new XMPPException.
|
XMPPException(org.xmpp.packet.PacketError error)
Cretaes a new XMPPException with the XMPPError that was the root case of
the exception.
|
XMPPException(SmackError code)
Creates a new XMPPException with a Smack specific error code.
|
XMPPException(StreamError streamError)
Creates a new XMPPException with the stream error that was the root case
of the exception.
|
XMPPException(String message)
Creates a new XMPPException with a description of the exception.
|
XMPPException(String message,
org.xmpp.packet.PacketError error)
Creates a new XMPPException with a description of the exception and the
XMPPException that was the root cause of the exception.
|
XMPPException(String message,
org.xmpp.packet.PacketError error,
Throwable wrappedThrowable)
Creates a new XMPPException with a description of the exception, an
XMPPError, and the Throwable that was the root cause of the exception.
|
XMPPException(String message,
Throwable wrappedThrowable)
Creates a new XMPPException with a description of the exception and the
Throwable that was the root cause of the exception.
|
XMPPException(Throwable wrappedThrowable)
Creates a new XMPPException with the Throwable that was the root cause of
the exception.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
SmackError |
getSmackError()
Returns the SmackError asscociated with this exception, or null
if there isn't one.
|
StreamError |
getStreamError()
Returns the StreamError asscociated with this exception, or null
if there isn't one.
|
Throwable |
getWrappedThrowable()
Returns the Throwable asscociated with this exception, or null
if there isn't one.
|
org.xmpp.packet.PacketError |
getXMPPError()
Returns the XMPPError asscociated with this exception, or null
if there isn't one.
|
void |
printStackTrace() |
void |
printStackTrace(PrintStream out) |
void |
printStackTrace(PrintWriter out) |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTracepublic XMPPException()
public XMPPException(String message)
message - description of the exception.public XMPPException(SmackError code)
code - the root cause of the exception.public XMPPException(Throwable wrappedThrowable)
wrappedThrowable - the root cause of the exception.public XMPPException(StreamError streamError)
streamError - the root cause of the exception.public XMPPException(org.xmpp.packet.PacketError error)
error - the root cause of the exception.public XMPPException(String message, Throwable wrappedThrowable)
message - a description of the exception.wrappedThrowable - the root cause of the exception.public XMPPException(String message, org.xmpp.packet.PacketError error, Throwable wrappedThrowable)
message - a description of the exception.error - the root cause of the exception.wrappedThrowable - the root cause of the exception.public XMPPException(String message, org.xmpp.packet.PacketError error)
message - a description of the exception.error - the root cause of the exception.public org.xmpp.packet.PacketError getXMPPError()
public SmackError getSmackError()
public StreamError getStreamError()
public Throwable getWrappedThrowable()
public void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintStream out)
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter out)
printStackTrace in class Throwablepublic String getMessage()
getMessage in class ThrowableCopyright © 2014. All Rights Reserved.