FingerlyConsentException class

A call refused because consent is not ConsentState.granted.

Nothing was collected and nothing was sent: the native SDK refuses before its first source runs, and a call already in flight when consent is withdrawn refuses before it submits. The same call succeeds once the app calls setConsent(ConsentState.granted), so this is not one to retry.

A FingerlyException as well, so an existing on FingerlyException handler keeps catching everything this package throws.

Inheritance

Properties

code → String
Always consent_required, matching the other SDKs.
no setter
hashCode → int
The hash code for this object.
no setterinherited
message → String
finalinherited
retryAfter → Duration?
How long the server asked the app to wait, from its Retry-After, when the native SDK gave up on a 429 or 503 that named one. Null when the response named no wait, and on platforms whose native bridge does not pass one on. Wait at least this long before identifying again.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → ConsentState
The state that refused the call: ConsentState.pending or ConsentState.denied.
final
status → int?
The HTTP status where there was one. The two worth branching on are 401 (the key is wrong) and 402 (the organisation is not accepting traffic) — both are the customer's configuration rather than the user's, and an app that retries either drains a battery over a typo.
finalinherited

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

Constants

consentRequired → const String
The string every Fingerly SDK and bridge uses for this failure.