PeekanappError class
A PeekanappError is an error that is thrown when the API returns an
erroneous response. It is also the model that's used in the errors
field
of the PeekanappAllResponseData model.
Constructors
- PeekanappError(String code, int statusCode)
-
const
Properties
- code → String
-
The code of the error. See the Peek-An-App documentation for a list of
possible error codes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
The HTTP status code associated with the error.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJSON(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJSON(
Map< String, dynamic> json) → PeekanappError
Constants
- AppNotFoundAppStore → const PeekanappError
- A PeekanappError that occurs when the app could not be found in the Apple App Store.
- AppNotFoundPlayStore → const PeekanappError
- A PeekanappError that occurs when the app could not be found in the Google Play Store.
- ParseErrorAppStore → const PeekanappError
- A PeekanappError that occurs when the app data could not be parsed from the Apple App Store.
- ParseErrorPlayStore → const PeekanappError
- A PeekanappError that occurs when the app data could not be parsed from the Google Play Store.
- UnknownError → const PeekanappError
- A PeekanappError that is thrown on any other error.