accesskit_atspi_common/
error.rs

1// Copyright 2022 The AccessKit Authors. All rights reserved.
2// Licensed under the Apache License, Version 2.0 (found in
3// the LICENSE-APACHE file) or the MIT license (found in
4// the LICENSE-MIT file), at your option.
5
6#[derive(Debug, thiserror::Error)]
7pub enum Error {
8    #[error("defunct")]
9    Defunct,
10    #[error("unsupported interface")]
11    UnsupportedInterface,
12    #[error("too many children")]
13    TooManyChildren,
14    #[error("index out of range")]
15    IndexOutOfRange,
16    #[error("too many characters")]
17    TooManyCharacters,
18    #[error("unsupported text granularity")]
19    UnsupportedTextGranularity,
20}
21
22pub type Result<T> = std::result::Result<T, Error>;