Skip to main content

rustenium_identity/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum IdentityError {
5    #[error("required identity field missing: {0}")]
6    MissingField(&'static str),
7    #[error("CDP command failed: {0}")]
8    CdpError(String),
9    #[error("UA construction failed: {0}")]
10    UaError(String),
11    #[error("timezone resolution failed for language={0}")]
12    TimezoneError(String),
13    #[error("script injection failed: {0}")]
14    InjectionError(String),
15    #[error("gpu update dispatch failed: {0}")]
16    GpuUpdateError(String),
17    #[error("no identity found with id={0}")]
18    NotFound(u64),
19}