KwikFormsHealthException class

Raised when the backend reports KwikPass unhealthy, or when the health endpoint itself is unreachable — the gate fails closed, so a KwikForms call is never sent while health is unknown.

Mirrors KwikpassHealthException in shape, with a KwikForms message. timestamp is stamped at construction (i.e. at throw time), and status / error are readable fields — no parsing of a stringified payload needed.

Implemented types

Constructors

KwikFormsHealthException({int status = 503, String error = 'ServiceUnavailable', String message = 'Kwikforms is unhealthy to make the API calls', String? timestamp, Object? cause})

Properties

cause Object?
Underlying transport failure, when the gate blocked because the health call itself failed rather than because the flag came back false.
final
error String
final
hashCode int
The hash code for this object.
no setterinherited
message String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
final
timestamp String
final

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