AdFlowError class
A typed error surfaced by ad_flow.
Implements Exception so the SDK seam and controllers can throw it
directly; it is also carried inside the AdFailed load state.
- Implemented types
Constructors
- AdFlowError(AdFlowErrorKind kind, String message, {int? code, String? domain})
-
Creates an error of the given
kindwith a human-readablemessage.const
Properties
- code → int?
-
Underlying SDK error code, when one exists
(e.g.
LoadAdError.codeorFormError.errorCode).final - domain → String?
-
Underlying SDK error domain, when one exists (e.g.
LoadAdError.domain).final - hashCode → int
-
The hash code for this object.
no setteroverride
- kind → AdFlowErrorKind
-
What part of the pipeline produced this error.
final
- message → String
-
Human-readable description (safe to log).
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.
override