public class

SyncException

extends AudioBoxException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ fm.audiobox.core.exceptions.AudioBoxException
           ↳ fm.audiobox.core.exceptions.SyncException

Class Overview

This exception is thrown whenever an error occurs while trying to sync a playlist with the remote service.

Errors in this case indicates a state with AudioBox account:

  • Subscription not in a good standing.
  • Account link to the remote service expired or not working for a remote problem.
  • The playlist was not found.
  • The playlist is not suitable for syncing.

Summary

[Expand]
Inherited Fields
From class fm.audiobox.core.exceptions.AudioBoxException
Public Constructors
SyncException(HttpResponse response)
Instantiates a new Sync Exception.
SyncException(int statusCode)
Instantiates a new Sync exception.
Public Methods
String getMessage()
[Expand]
Inherited Methods
From class fm.audiobox.core.exceptions.AudioBoxException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public SyncException (HttpResponse response)

Instantiates a new Sync Exception.

Parameters
response the response

public SyncException (int statusCode)

Instantiates a new Sync exception.

Parameters
statusCode the status code

Public Methods

public String getMessage ()