public class AudioBoxException
extends java.io.IOException
Generic AudioBox service exceptions.
This kind of exceptions are typically thrown when a problem with the remote service occurs.
Handled remote errors are:ForbiddenException).ForbiddenException).ResourceNotFoundException).FileAlreadyUploaded).ValidationException).| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
protected int |
statusCode |
| Constructor and Description |
|---|
AudioBoxException(com.google.api.client.http.HttpResponse response)
Instantiates a new AudioBoxException exception starting from the response.
|
AudioBoxException(java.lang.String message)
Instantiates a new AudioBoxException.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Gets status code.
|
com.google.api.client.http.HttpResponse |
getResponse()
Gets response.
|
public AudioBoxException(java.lang.String message)
message - the messagepublic AudioBoxException(com.google.api.client.http.HttpResponse response)
response - the response