sui_indexer_alt_jsonrpc/api/objects/
error.rs

1// Copyright (c) Mysten Labs, Inc.
2// SPDX-License-Identifier: Apache-2.0
3
4#[derive(thiserror::Error, Debug)]
5pub(crate) enum Error {
6    #[error("Pagination issue: {0}")]
7    Pagination(#[from] crate::paginate::Error),
8
9    #[error("Requested {requested} keys, exceeding maximum {max}")]
10    TooManyKeys { requested: usize, max: usize },
11
12    #[error("Multiple exclusions unsupported")]
13    MultipleExclusions,
14}