VNOX-Client/patches/accesskit_atspi_common/src/error.rs
loki5512344 8e5ab56611
feat(client): redesign native UI, themes, settings and avatars
Separate conversation drafts and voice view state, add native settings and restricted CSS themes, implement validated avatar cropping, and refresh dependencies with documented desktop compatibility backports.
2026-10-24 14:23:48 +02:00

33 lines
1,011 B
Rust
Vendored

// Copyright 2022 The AccessKit Authors. All rights reserved.
// Licensed under the Apache License, Version 2.0 (found in
// the LICENSE-APACHE file) or the MIT license (found in
// the LICENSE-MIT file), at your option.
use std::fmt;
#[derive(Debug)]
pub enum Error {
Defunct,
UnsupportedInterface,
TooManyChildren,
IndexOutOfRange,
TooManyCharacters,
UnsupportedTextGranularity,
}
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(match self {
Self::Defunct => "defunct",
Self::UnsupportedInterface => "unsupported interface",
Self::TooManyChildren => "too many children",
Self::IndexOutOfRange => "index out of range",
Self::TooManyCharacters => "too many characters",
Self::UnsupportedTextGranularity => "unsupported text granularity",
})
}
}
impl std::error::Error for Error {}
pub type Result<T> = std::result::Result<T, Error>;