pub enum ErrorCode {
Show 34 variants
NavigationTimeout,
RenderUnavailable,
HostUnreachable,
DnsResolutionFailed,
TargetUnreachable,
TlsError,
TabCrashed,
ProfileLocked,
BrowserLaunchFailed,
CdpUnavailable,
CdpError,
CdpTimeout,
WaitSelectorUnmatched,
BackendUnsupported,
ArtifactCaptureFailed,
ArtifactCaptureTimeout,
ArtifactEmpty,
ArtifactTiny,
BotWallDetected,
SecurityChallengeDetected,
NetworkNotIdle,
NavigationStale,
ObservationEmpty,
PendingXhrAtCapture,
ReadinessTimeout,
NetworkBodyTruncated,
ProfileNotFound,
ProfileDeleteLocked,
ProfileInvalidName,
ProfileRootUnavailable,
InvalidArgument,
InvalidEndpoint,
IoError,
InternalError,
}Expand description
Stable error-code enum from architecture.md §11.
Variants serialize to their snake_case form (e.g. ErrorCode::NavigationTimeout
→ "navigation_timeout"). Agents match on this; they do not parse
Error::detail.
Variants§
HostUnreachable
DnsResolutionFailed
TargetUnreachable
TlsError
TabCrashed
ProfileLocked
BrowserLaunchFailed
CdpError
CdpTimeout
WaitSelectorUnmatched
BackendUnsupported
ArtifactCaptureFailed
ArtifactCaptureTimeout
ArtifactEmpty
ArtifactTiny
BotWallDetected
SecurityChallengeDetected
NetworkNotIdle
ObservationEmpty
PendingXhrAtCapture
ReadinessTimeout
NetworkBodyTruncated
ProfileNotFound
ProfileDeleteLocked
ProfileInvalidName
InvalidArgument
InvalidEndpoint
IoError
InternalError
Implementations§
Source§impl ErrorCode
impl ErrorCode
Sourcepub const fn retryable_default(self) -> bool
pub const fn retryable_default(self) -> bool
Default retryability per architecture.md §11. Some codes (cdp_error,
artifact_capture_failed, browser_launch_failed) are “depends on
detail”; we report a conservative default and let callers override via
Error::with_retryable when they know better.
Trait Implementations§
impl Copy for ErrorCode
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.