accesskit_atspi_common/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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.

#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("defunct")]
    Defunct,
    #[error("unsupported interface")]
    UnsupportedInterface,
    #[error("too many children")]
    TooManyChildren,
    #[error("index out of range")]
    IndexOutOfRange,
    #[error("too many characters")]
    TooManyCharacters,
    #[error("unsupported text granularity")]
    UnsupportedTextGranularity,
}

pub type Result<T> = std::result::Result<T, Error>;