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