Package rocks.xmpp.extensions.httpbind
Class BoshException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- rocks.xmpp.core.XmppException
-
- rocks.xmpp.extensions.httpbind.BoshException
-
- All Implemented Interfaces:
Serializable
public final class BoshException extends XmppException
A BOSH exception is thrown when the BOSH connection manager returned an error condition or the HTTP request responded with an HTTP error code.- See Also:
Body.Condition
, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Body.Condition
getCondition()
Gets the BOSH error condition.int
getHttpErrorCode()
Gets the HTTP error code.URI
getUri()
Gets the URI in case of a "see-other-uri" error.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getCondition
public final Body.Condition getCondition()
Gets the BOSH error condition.- Returns:
- The BOSH error condition.
-
getUri
public final URI getUri()
Gets the URI in case of a "see-other-uri" error.- Returns:
- The URI.
-
getHttpErrorCode
public final int getHttpErrorCode()
Gets the HTTP error code.- Returns:
- The HTTP error code.
-
-