PlaywireAdError class

Represents a standardized error from the Playwire SDK, consistent across iOS and Android.

Implemented types

Constructors

PlaywireAdError({required PlaywireAdErrorCode code, required String name, required String message, required Map<String, dynamic> metadata})
const
PlaywireAdError.fromMap(Map<String, dynamic> map)
Creates a PlaywireAdError instance from a map, typically received from the native bridge.
factory

Properties

code → PlaywireAdErrorCode
A distinct error code that identifies the specific type of error.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
A detailed, human-readable message describing the error.
final
metadata → Map<String, dynamic>
A map containing additional, context-specific metadata about the error.
final
name → String
A short, machine-readable string representing the error code (e.g., "noFill").
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