Enum JsonErrorKind

Source
pub enum JsonErrorKind {
Show 47 variants InternalError, MaintenanceMode, UrlParamMissingMethod, UrlParamMissingAuthToken, UrlParamMissingPartnerId, UrlParamMissingUserId, SecureProtocolRequired, CertificateRequired, ParameterTypeMismatch, ParameterMissing, ParameterValueInvalid, ApiVersionNotSupported, LicensingRestrictions, InsufficientConnectivity, UnknownMethodName, WrongProtocol, ReadOnlyMode, InvalidAuthToken, InvalidPartnerLogin, ListenerNotAuthorized, UserNotAuthorized, MaxStationsReached, StationDoesNotExist, ComplimentaryPeriodAlreadyInUse, CallNotAllowed, DeviceNotFound, PartnerNotAuthorized, InvalidUsername, InvalidPassword, UsernameAlreadyExists, DeviceAlreadyAssociatedToAccount, UpgradeDeviceModelInvalid, ExplicitPinIncorrect, ExplicitPinMalformed, DeviceModelInvalid, ZipCodeInvalid, BirthYearInvalid, BirthYearTooYoung, InvalidCountryCode, InvalidGender, DeviceDisabled, DailyTrialLimitReached, InvalidSponsor, UserAlreadyUsedTrial, PlaylistExceeded, UnknownErrorCode(u32), UnknownErrorMessage,
}
Expand description

https://6xq.net/pandora-apidoc/json/errorcodes/

Variants§

§

InternalError

Code 0 - Internal error. It can denote that your account has been temporarily blocked due to having too frequent station.getPlaylist calls.

§

MaintenanceMode

Code 1 - MAINTENANCE_MODE

§

UrlParamMissingMethod

Code 2 - URL_PARAM_MISSING_METHOD

§

UrlParamMissingAuthToken

Code 3 - URL_PARAM_MISSING_AUTH_TOKEN

§

UrlParamMissingPartnerId

Code 4 - URL_PARAM_MISSING_PARTNER_ID

§

UrlParamMissingUserId

Code 5 - URL_PARAM_MISSING_USER_ID

§

SecureProtocolRequired

Code 6 - SECURE_PROTOCOL_REQUIRED

§

CertificateRequired

Code 7 - CERTIFICATE_REQUIRED

§

ParameterTypeMismatch

Code 8 - PARAMETER_TYPE_MISMATCH

§

ParameterMissing

Code 9 - PARAMETER_MISSING. Usually occurs when one or more required parameters are missing for the method called.

§

ParameterValueInvalid

Code 10 - PARAMETER_VALUE_INVALID

§

ApiVersionNotSupported

Code 11 - API_VERSION_NOT_SUPPORTED

§

LicensingRestrictions

Code 12 - LICENSING_RESTRICTIONS. Pandora not available in this country.

§

InsufficientConnectivity

Code 13 - INSUFFICIENT_CONNECTIVITY. Bad sync time?

§

UnknownMethodName

Code 14 - Unknown method name?

§

WrongProtocol

Code 15 - Wrong protocol (http/https)?

§

ReadOnlyMode

Code 1000 - READ_ONLY_MODE

§

InvalidAuthToken

Code 1001 - INVALID_AUTH_TOKEN. Occurs once a user auth token expires.

§

InvalidPartnerLogin

Code 1002 - INVALID_PARTNER_LOGIN. auth.partnerLogin auth.userLogin. Can also occur for a user login.

§

ListenerNotAuthorized

Code 1003 - LISTENER_NOT_AUTHORIZED. station.getPlaylist - Pandora One Subscription or Trial Expired. Possibly account suspended?

§

UserNotAuthorized

Code 1004 - USER_NOT_AUTHORIZED. User not authorized to perform action. Is your station token correct?

§

MaxStationsReached

Code 1005 - MAX_STATIONS_REACHED. Station limit reached.

§

StationDoesNotExist

Code 1006 - STATION_DOES_NOT_EXIST. Station does not exist.

§

ComplimentaryPeriodAlreadyInUse

Code 1007 - COMPLIMENTARY_PERIOD_ALREADY_IN_USE

§

CallNotAllowed

Code 1008 - CALL_NOT_ALLOWED. station.addFeedback - Returned when attempting to add feedback to shared station.

§

DeviceNotFound

Code 1009 - DEVICE_NOT_FOUND

§

PartnerNotAuthorized

Code 1010 - PARTNER_NOT_AUTHORIZED

§

InvalidUsername

Code 1011 - INVALID_USERNAME

§

InvalidPassword

Code 1012 - INVALID_PASSWORD

§

UsernameAlreadyExists

Code 1013 - USERNAME_ALREADY_EXISTS

§

DeviceAlreadyAssociatedToAccount

Code 1014 - DEVICE_ALREADY_ASSOCIATED_TO_ACCOUNT

§

UpgradeDeviceModelInvalid

Code 1015 - UPGRADE_DEVICE_MODEL_INVALID

§

ExplicitPinIncorrect

Code 1018 - EXPLICIT_PIN_INCORRECT

§

ExplicitPinMalformed

Code 1020 - EXPLICIT_PIN_MALFORMED

§

DeviceModelInvalid

Code 1023 - DEVICE_MODEL_INVALID

§

ZipCodeInvalid

Code 1024 - ZIP_CODE_INVALID

§

BirthYearInvalid

Code 1025 - BIRTH_YEAR_INVALID

§

BirthYearTooYoung

Code 1026 - BIRTH_YEAR_TOO_YOUNG

§

InvalidCountryCode

Code 1027 - INVALID_COUNTRY_CODE

§

InvalidGender

Code 1027 - INVALID_GENDER

§

DeviceDisabled

Code 1034 - DEVICE_DISABLED

§

DailyTrialLimitReached

Code 1035 - DAILY_TRIAL_LIMIT_REACHED

§

InvalidSponsor

Code 1036 - INVALID_SPONSOR

§

UserAlreadyUsedTrial

Code 1037 - USER_ALREADY_USED_TRIAL

§

PlaylistExceeded

Code 1039 - PLAYLIST_EXCEEDED. Too many requests for a new playlist.

§

UnknownErrorCode(u32)

Undocumented error code

§

UnknownErrorMessage

No error code provided

Trait Implementations§

Source§

impl Clone for JsonErrorKind

Source§

fn clone(&self) -> JsonErrorKind

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for JsonErrorKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for JsonErrorKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Format this type for display

Source§

impl From<u32> for JsonErrorKind

Source§

fn from(code: u32) -> Self

Create a JsonError from an error code.

Source§

impl PartialEq for JsonErrorKind

Source§

fn eq(&self, other: &JsonErrorKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for JsonErrorKind

Source§

impl StructuralPartialEq for JsonErrorKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToStringFallible for T
where T: Display,

Source§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,