sui_transaction_builder/
error.rs

1// Copyright (c) Mysten Labs, Inc.
2// SPDX-License-Identifier: Apache-2.0
3
4use sui_sdk_types::Address;
5
6#[derive(thiserror::Error, Debug, Clone)]
7#[non_exhaustive]
8pub enum Error {
9    #[error("Conversion error due to input issue: {0}")]
10    Input(String),
11    #[error("Gas object should be an immutable or owned object")]
12    WrongGasObject,
13    #[error("Missing object id")]
14    MissingObjectId,
15    #[error("Missing version for object {0}")]
16    MissingVersion(Address),
17    #[error("Missing digest for object {0}")]
18    MissingDigest(Address),
19    #[error("Missing sender")]
20    MissingSender,
21    #[error("Missing gas objects")]
22    MissingGasObjects,
23    #[error("Missing gas budget")]
24    MissingGasBudget,
25    #[error("Missing gas price")]
26    MissingGasPrice,
27    #[error("Missing object kind for object {0}")]
28    MissingObjectKind(Address),
29    #[error("Unknown shared object mutability for object {0}")]
30    SharedObjectMutability(Address),
31}