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 |
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 |
|---|---|
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 ErrorInfo()
public ErrorInfo(java.lang.String message,
int code)
message - code - public ErrorInfo(java.lang.String message,
int statusCode,
int code)
message - statusCode - code -