SpotifyException class abstract

Base exception class for all Spotify SDK errors.

Implemented types
Implementers

Constructors

SpotifyException(String message, {String? code, dynamic details, Object? cause})
Constructs a SpotifyException.
const
SpotifyException.fromException(Exception e)
Factory translating any generic Exception or PlatformException into a specific SpotifyException subclass.
factory
SpotifyException.fromPlatformException(PlatformException e)
Factory mapping a PlatformException by its code and message into the appropriate domain exception subtype.
factory

Properties

cause Object?
Underlying error or cause if translated from a platform or network error.
final
code String?
Error code identifying the category or native error code.
final
details → dynamic
Additional diagnostic details if provided by the platform.
final
hashCode int
The hash code for this object.
no setterinherited
message String
Human-readable error message describing the failure.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited