public class ErrorInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
code
Ably error code.
|
java.lang.String |
href
This is included for REST responses to provide a URL for additional help on the error code.
|
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)
Construct an ErrorInfo from message, statusCode, and code
|
| 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
Spec: TI1
public int statusCode
Spec: TI1
public java.lang.String message
Spec: TI1
public java.lang.String href
Spec: TI4
public ErrorInfo()
public ErrorInfo(java.lang.String message,
int code)
message - Additional message information, where available.code - Ably error code.public ErrorInfo(java.lang.String message,
int statusCode,
int code)
message - Additional message information, where available.statusCode - HTTP Status Code corresponding to this error, where applicable.code - Ably error 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