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 FormConstructor and Description |
---|
XMPPException()
Creates a new XMPPException.
|
XMPPException(StreamError streamError)
Cretaes 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,
Throwable wrappedThrowable)
Creates a new XMPPException with a description of the exception and the
Throwable that was the root cause of the exception.
|
XMPPException(String message,
XMPPError 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,
XMPPError 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(Throwable wrappedThrowable)
Creates a new XMPPException with the Throwable that was the root cause of the
exception.
|
XMPPException(XMPPError error)
Cretaes a new XMPPException with the XMPPError that was the root case of the
exception.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
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.
|
XMPPError |
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, setStackTrace
public XMPPException()
public XMPPException(String message)
message
- description 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(XMPPError 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, XMPPError error, Throwable wrappedThrowable)
message
- a description of the exception.error
- the root cause of the exception.wrappedThrowable
- the root cause of the exception.public XMPPError getXMPPError()
public StreamError getStreamError()
public Throwable getWrappedThrowable()
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream out)
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter out)
printStackTrace
in class Throwable
public String getMessage()
getMessage
in class Throwable
Copyright © 2003-2007 Jive Software.