TickkiChatException class

Exception thrown by every Tickki Chat SDK call. All HTTP and realtime failures surface as one of these — branch on code for programmatic handling and use message for logs / dev tools.

The code strings mirror the backend's stable error envelope codes (e.g. invalid_api_key, rate_limited, plan_gate) — see the error reference for the full list.

Implemented types

Constructors

TickkiChatException({required String code, required String message, int? statusCode, Object? cause})

Properties

cause Object?
Underlying exception, when this wraps another error. Useful for debugging but not part of the stable contract.
final
code String
Stable machine-readable error code. Safe to switch on.
final
hashCode int
The hash code for this object.
no setterinherited
isAuthError bool
True when the error indicates a missing / invalid / expired credential of any kind. Apps typically retry-with-fresh-key or surface a "sign in again" UI for these.
no setter
isRateLimited bool
Convenience flag for code == 'rate_limited' — apps often want to apply backoff specifically for this case without a string compare at the call site.
no setter
message String
Human-readable message suitable for logs.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
HTTP status code, when the error came from the REST API. Null for client-side failures (network errors, parse errors).
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