ErrorData class

Represents an error returned by the EAN-DB API.

Contains information about the error, including a description and error code.

Know error codes: 400: Invalid barcode supplied 403: Access denied (missing or invalid JWT) 404: Product not found

Implementers

Constructors

ErrorData({required String description, required int code})
Creates a new ErrorData instance.

Properties

code int
The numeric error code.
final
description String
A human-readable description of the error.
final
hashCode int
The hash code for this object.
no setterinherited
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
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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