pub enum TDError {
}Expand description
Errors returned by the ThinkingData SDK.
External error sources (HTTP, IO, JSON, URL) are preserved as formatted
messages so the error itself stays Clone, which the consumers need to
publish results — such as the outcome of close — to concurrent callers.
Variants§
Message(String)
A generic error message, mirroring the error strings of the official SDKs.
Http(String)
An HTTP transport or response error.
Io(String)
A file system error.
Json(String)
A JSON serialization error.
InvalidServerUrl(String)
The configured server URL is invalid.
EmptyEventName
event_name is required for every track* data type.
EmptyEventId
event_id is required for track_update and track_overwrite.
EmptyFirstCheckId
first_check_id is required for first events.
InvalidEventName(String)
The event name does not match ^[a-zA-Z#][A-Za-z0-9_]{0,49}$.
InvalidPropertyKey(String)
A property key does not match ^[a-zA-Z#][A-Za-z0-9_]{0,49}$.
Only reported by stringent consumers (debug consumer).
InvalidUserAddValue
A user_add property value is not a number.
EmptyIds
Both account_id and distinct_id were empty.
EmptyUnsetKeys
user_unset was called without any keys.
ConsumerClosed
The batch consumer has been closed and no longer accepts data.
Implementations§
Trait Implementations§
Source§impl Error for TDError
impl Error for TDError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()