sui_indexer_alt_jsonrpc/api/objects/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

#[derive(thiserror::Error, Debug)]
pub(super) enum Error {
    #[error("Object filter contains more than the maximum {max} type filters")]
    FilterTooBig { max: usize },

    #[error("Object filter nested deeper than maximum of {max}")]
    FilterTooDeep { max: usize },

    #[error("Pagination issue: {0}")]
    Pagination(#[from] crate::paginate::Error),

    #[error("Requested {requested} keys, exceeding maximum {max}")]
    TooManyKeys { requested: usize, max: usize },
}