public class Error extends ResourceBase
client, id, properties
dateFormat
Constructor and Description |
---|
Error(BandwidthClient client,
org.json.simple.JSONObject jsonObject) |
Error(BandwidthClient client,
String parentUri,
org.json.simple.JSONObject jsonObject) |
Modifier and Type | Method and Description |
---|---|
static Error |
get(BandwidthClient client,
String id)
Factory method for Error.
|
static Error |
get(String id)
Factory method for Error.
|
String |
getCategory() |
String |
getCode() |
List<ErrorDetail> |
getDetails() |
String |
getMessage() |
Date |
getTime() |
protected String |
getUri() |
static ResourceList<Error> |
list()
Factory method for errors list.
|
static ResourceList<Error> |
list(BandwidthClient client,
int page,
int size)
Factory method for errors list.
|
static ResourceList<Error> |
list(int page,
int size)
Factory method for errors list.
|
protected void |
setUp(org.json.simple.JSONObject jsonObject) |
String |
toString() |
getClient, getId, getProperties, setId, toJSONArray, toJSONObject
getProperty, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, putProperty, toMap, updateProperties
public Error(BandwidthClient client, String parentUri, org.json.simple.JSONObject jsonObject)
public Error(BandwidthClient client, org.json.simple.JSONObject jsonObject)
public static Error get(String id) throws Exception
id
- error idIOException
- unexpected error.Exception
public static Error get(BandwidthClient client, String id) throws Exception
client
- the clientid
- error idIOException
- unexpected error.Exception
public static ResourceList<Error> list() throws IOException
IOException
- unexpected error.public static ResourceList<Error> list(int page, int size) throws IOException
page
- the pagesize
- the page sizeIOException
- unexpected error.public static ResourceList<Error> list(BandwidthClient client, int page, int size) throws IOException
client
- the clientpage
- the pagesize
- the page sizeIOException
- unexpected error.protected void setUp(org.json.simple.JSONObject jsonObject)
setUp
in class ResourceBase
protected String getUri()
public String getMessage()
public String getCategory()
public String getCode()
public List<ErrorDetail> getDetails()
public Date getTime()
Copyright © 2015. All Rights Reserved.