use thiserror::Error;
#[derive(Debug, Error)]
pub enum IdentityError {
#[error("required identity field missing: {0}")]
MissingField(&'static str),
#[error("CDP command failed: {0}")]
CdpError(String),
#[error("UA construction failed: {0}")]
UaError(String),
#[error("timezone resolution failed for language={0}")]
TimezoneError(String),
#[error("script injection failed: {0}")]
InjectionError(String),
#[error("gpu update dispatch failed: {0}")]
GpuUpdateError(String),
#[error("no identity found with id={0}")]
NotFound(u64),
}