public static class XMPPException.XMPPErrorException extends XMPPException
XMPPException.StreamErrorException, XMPPException.XMPPErrorException| Constructor and Description |
|---|
XMPPErrorException(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.
|
XMPPErrorException(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.
|
XMPPErrorException(XMPPError error)
Creates a new XMPPException with the XMPPError that was the root case of the exception.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
XMPPError |
getXMPPError()
Returns the XMPPError associated with this exception, or null if there isn't
one.
|
static void |
ifHasErrorThenThrow(Stanza packet) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic XMPPErrorException(XMPPError error)
error - the root cause of the exception.public XMPPErrorException(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 XMPPErrorException(String message, XMPPError error)
message - a description of the exception.error - the root cause of the exception.public XMPPError getXMPPError()
public String getMessage()
getMessage in class Throwablepublic static void ifHasErrorThenThrow(Stanza packet) throws XMPPException.XMPPErrorException
XMPPException.XMPPErrorException