public enum Error extends Enum<Error>
Enum Constant and Description |
---|
kSpAlreadyPrefetching
An item is already actively being prefetched.
|
kSpErrorAdIsPlaying
Cannot change track while ad is playing.
|
kSpErrorAlreadyInitialized
SpInit() was called more than once.
|
kSpErrorAPIRateLimited
The API has been rate-limited.
|
kSpErrorApplicationBanned
The application has been banned by Spotify.
|
kSpErrorContextFailed
Unable to read all tracks from the playing context.
|
kSpErrorCorruptTrack
The track is (temporarily) corrupt in the Spotify catalogue.
|
kSpErrorFailed
The operation failed due to an unspecified issue.
|
kSpErrorGeneralLoginError
An unspecified login error occurred.
|
kSpErrorGeneralPlaybackError
An unspecified playback error occurred.
|
kSpErrorInitFailed
The library could not be initialized.
|
kSpErrorInvalidArgument
An unexpected argument value was passed to a function.
|
kSpErrorLoginBadCredentials
Login to Spotify failed because of invalid credentials.
|
kSpErrorNeedsPremium
The operation requires a Spotify Premium account
|
kSpErrorNotActiveDevice
The operation is not supported if the device is not the active playback
device.
|
kSpErrorNullArgument
An unexpected NULL pointer was passed as an argument to a function.
|
kSpErrorOk
The operation was successful.
|
kSpErrorPlaybackCappingLimitReached
The Spotify user has reached a capping limit that is in effect
in this country and/or for this track.
|
kSpErrorPlaybackErrorStart
Error range reserved for playback-related errors.
|
kSpErrorPlaybackRateLimited
The application has been rate-limited.
|
kSpErrorPrefetchItemUnavailable |
kSpErrorTravelRestriction
The Spotify user is not allowed to log in from this country.
|
kSpErrorUninitialized
A function was invoked before SpInit() or after SpFree() was called.
|
kSpErrorUnsupported
The operation is not supported.
|
kSpErrorWrongAPIVersion
The library could not be initialized because of an incompatible API version.
|
kSpPrefetchDownloadFailed
Prefetched item was not fully downloaded or failed.
|
kSpStorageReadError |
kSpStorageWriteError
A permanent error was encountered while writing to a registered file storage callback.
|
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static Error |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Error[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Error UNKNOWN
public static final Error kSpErrorOk
public static final Error kSpErrorFailed
public static final Error kSpErrorInitFailed
public static final Error kSpErrorWrongAPIVersion
public static final Error kSpErrorNullArgument
public static final Error kSpErrorInvalidArgument
public static final Error kSpErrorUninitialized
public static final Error kSpErrorAlreadyInitialized
public static final Error kSpErrorLoginBadCredentials
public static final Error kSpErrorNeedsPremium
public static final Error kSpErrorTravelRestriction
public static final Error kSpErrorApplicationBanned
public static final Error kSpErrorGeneralLoginError
public static final Error kSpErrorUnsupported
public static final Error kSpErrorNotActiveDevice
public static final Error kSpErrorAPIRateLimited
public static final Error kSpErrorPlaybackErrorStart
public static final Error kSpErrorGeneralPlaybackError
public static final Error kSpErrorPlaybackRateLimited
public static final Error kSpErrorPlaybackCappingLimitReached
public static final Error kSpErrorAdIsPlaying
public static final Error kSpErrorCorruptTrack
public static final Error kSpErrorContextFailed
public static final Error kSpErrorPrefetchItemUnavailable
public static final Error kSpAlreadyPrefetching
public static final Error kSpStorageReadError
public static final Error kSpStorageWriteError
public static final Error kSpPrefetchDownloadFailed
public static Error[] values()
for (Error c : Error.values()) System.out.println(c);
public static Error valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null