public class ResponseError extends Object
Constructor and Description |
---|
ResponseError()
Default constructor.
|
ResponseError(int code,
String message) |
ResponseError(int code,
String message,
com.google.gson.JsonElement data) |
ResponseError(int code,
String message,
String data)
Parameterised constructor.
|
ResponseError(int code,
String type,
String message,
String data) |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Error status code accessor (getter).
|
String |
getCompleteMessage() |
String |
getData()
Error data accessor (getter).
|
String |
getMessage()
Error message accessor (getter).
|
String |
getType() |
static ResponseError |
newFromException(int requestId,
String message,
Throwable e) |
static ResponseError |
newFromException(int requestId,
Throwable e) |
static ResponseError |
newFromException(String message,
Throwable e) |
static ResponseError |
newFromException(Throwable e) |
String |
toString() |
public ResponseError()
public ResponseError(int code, String message, String data)
code
- Error status codemessage
- Error messagedata
- Error datapublic ResponseError(int code, String message, com.google.gson.JsonElement data)
public ResponseError(int code, String message)
public static ResponseError newFromException(Throwable e)
public static ResponseError newFromException(String message, Throwable e)
public static ResponseError newFromException(int requestId, Throwable e)
public static ResponseError newFromException(int requestId, String message, Throwable e)
public int getCode()
public String getMessage()
public String getData()
public String getType()
public String getCompleteMessage()
Copyright © 2017 Kurento. All rights reserved.