java.lang.Object |
↳ |
java.lang.Throwable |
|
↳ |
java.lang.Exception |
|
|
↳ |
java.io.IOException |
|
|
|
↳ |
fm.audiobox.core.exceptions.AudioBoxException |
Known Direct Subclasses
ForbiddenException |
This exception is thrown when the user tries to access
a resource he's not allowed to access, because of ownership
or account state. |
RemoteMessageException |
This exception is the parent exception for:
It is used for those exception risen by responses given by the service
that bring some information on what gone wrong. |
ResourceNotFoundException |
This exception is thrown when a 404 is returned by the service. |
SyncException |
This exception is thrown whenever an error occurs while trying to
sync a playlist with the remote service. |
|
Known Indirect Subclasses
AuthorizationException |
This exception is thrown when the OAuth2 token and/or the refresh token
have been invalidated or they are expired. |
FileAlreadyUploaded |
This exception is thrown while uploading if a media file already exists on AudioBox Cloud. |
SystemOverloadedException |
This exception is thrown when AudioBox servers are overloaded or same job submitted too fast. |
ValidationException |
This exception is thrown when a POST or PUT request rise a remote validation error. |
|
Class Overview
Generic AudioBox service exceptions.
This kind of exceptions are typically thrown when a problem with the remote service occurs.
Handled remote errors are:
- HTTP Status 402:
- Action requires a valid subscription (
ForbiddenException
).
- HTTP Status 403:
- Action requires a valid account link to the remote service (
ForbiddenException
).
- HTTP Status 404:
- Resource not found or immutable (
ResourceNotFoundException
).
- HTTP Status 409:
- Conflict occurred (
FileAlreadyUploaded
).
- HTTP Status 422:
- Validation errors (
ValidationException
).
- HTTP Status 503:
- Remote service unavailable (overload or system failure)
Summary
Public Constructors |
|
AudioBoxException(String message)
Instantiates a new AudioBoxException.
|
|
AudioBoxException(HttpResponse response)
Instantiates a new AudioBoxException exception starting from the response.
|
[Expand]
Inherited Methods |
From class
java.lang.Throwable
synchronized
final
void
|
addSuppressed(Throwable arg0)
|
synchronized
Throwable
|
fillInStackTrace()
|
synchronized
Throwable
|
getCause()
|
String
|
getLocalizedMessage()
|
String
|
getMessage()
|
StackTraceElement[]
|
getStackTrace()
|
synchronized
final
Throwable[]
|
getSuppressed()
|
synchronized
Throwable
|
initCause(Throwable arg0)
|
void
|
printStackTrace(PrintStream arg0)
|
void
|
printStackTrace(PrintWriter arg0)
|
void
|
printStackTrace()
|
void
|
setStackTrace(StackTraceElement[] arg0)
|
String
|
toString()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Fields
protected
static
Logger
logger
Public Constructors
public
AudioBoxException
(String message)
Instantiates a new AudioBoxException.
public
AudioBoxException
(HttpResponse response)
Instantiates a new AudioBoxException exception starting from the response.
Public Methods
public
int
getErrorCode
()
public
HttpResponse
getResponse
()