-
public class ErrorInfoA generic Ably error object that contains an Ably-specific status code, and a generic status code. Errors returned from the Ably server are compatible with the ErrorInfo structure and should result in errors that inherit from ErrorInfo.
-
-
Method Summary
Modifier and Type Method Description StringtoString()static ErrorInfofromMsgpackBody(Array<byte> msgpack)static ErrorInfofromThrowable(Throwable throwable)static ErrorInfofromResponseStatus(String statusLine, int statusCode)booleanequals(Object o)-
-
Constructor Detail
-
ErrorInfo
ErrorInfo()
Public no-argument constructor for msgpack
-
ErrorInfo
ErrorInfo(String message, int code)
Construct an ErrorInfo from message and code- Parameters:
message- Additional message information, where available.code- Ably error code.
-
ErrorInfo
ErrorInfo(String message, int statusCode, int code)
Construct an ErrorInfo from message, statusCode, and code- Parameters:
message- Additional message information, where available.statusCode- HTTP Status Code corresponding to this error, where applicable.code- Ably error code.
-
-
Method Detail
-
fromMsgpackBody
static ErrorInfo fromMsgpackBody(Array<byte> msgpack)
-
fromThrowable
static ErrorInfo fromThrowable(Throwable throwable)
-
fromResponseStatus
static ErrorInfo fromResponseStatus(String statusLine, int statusCode)
-
-
-
-