public class ErrorInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
code
Ably error code (see ably-common/protocol/errors.json)
|
java.lang.String |
href
Link to specification detail for this error code, where available.
|
java.lang.String |
message
Additional message information, where available
|
int |
statusCode
HTTP Status Code corresponding to this error, where applicable
|
| Constructor and Description |
|---|
ErrorInfo()
Public no-argument constructor for msgpack
|
ErrorInfo(java.lang.String message,
int code)
Construct an ErrorInfo from message and code
|
ErrorInfo(java.lang.String message,
int statusCode,
int code)
Generic constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
static ErrorInfo |
fromMsgpackBody(byte[] msgpack) |
static ErrorInfo |
fromResponseStatus(java.lang.String statusLine,
int statusCode) |
static ErrorInfo |
fromThrowable(java.lang.Throwable throwable) |
java.lang.String |
toString() |
public int code
public int statusCode
public java.lang.String message
public java.lang.String href
public ErrorInfo()
public ErrorInfo(java.lang.String message,
int code)
message - code - public ErrorInfo(java.lang.String message,
int statusCode,
int code)
message - statusCode - code - public java.lang.String toString()
toString in class java.lang.Objectpublic static ErrorInfo fromMsgpackBody(byte[] msgpack) throws java.io.IOException
java.io.IOExceptionpublic static ErrorInfo fromThrowable(java.lang.Throwable throwable)
public static ErrorInfo fromResponseStatus(java.lang.String statusLine, int statusCode)
public boolean equals(java.lang.Object o)
equals in class java.lang.Object