public static class XMPPException.XMPPErrorException extends XMPPException
XMPPException.StreamErrorException, XMPPException.XMPPErrorException| Constructor and Description |
|---|
XMPPErrorException(java.lang.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(java.lang.String message,
XMPPError error,
java.lang.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 |
|---|---|
java.lang.String |
getMessage() |
XMPPError |
getXMPPError()
Returns the XMPPError associated with this exception, or null if there isn't
one.
|
static void |
ifHasErrorThenThrow(Stanza packet) |
public XMPPErrorException(XMPPError error)
error - the root cause of the exception.public XMPPErrorException(java.lang.String message,
XMPPError error,
java.lang.Throwable wrappedThrowable)
message - a description of the exception.error - the root cause of the exception.wrappedThrowable - the root cause of the exception.public XMPPErrorException(java.lang.String message,
XMPPError error)
message - a description of the exception.error - the root cause of the exception.public XMPPError getXMPPError()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic static void ifHasErrorThenThrow(Stanza packet) throws XMPPException.XMPPErrorException
XMPPException.XMPPErrorException