sui_transaction_builder/
error.rs1use base64ct::Error as Base64Error;
5use sui_types::ObjectId;
6
7#[derive(thiserror::Error, Debug, Clone)]
8#[non_exhaustive]
9pub enum Error {
10 #[error("Conversion error due to input issue: {0}")]
11 Input(String),
12 #[error("Gas object should be an immutable or owned object")]
13 WrongGasObject,
14 #[error("Decoding error: {0}")]
15 Decoding(#[from] Base64Error),
16 #[error("Missing object id")]
17 MissingObjectId,
18 #[error("Missing version for object {0}")]
19 MissingVersion(ObjectId),
20 #[error("Missing digest for object {0}")]
21 MissingDigest(ObjectId),
22 #[error("Missing sender")]
23 MissingSender,
24 #[error("Missing gas objects")]
25 MissingGasObjects,
26 #[error("Missing gas budget")]
27 MissingGasBudget,
28 #[error("Missing gas price")]
29 MissingGasPrice,
30 #[error("Missing object kind for object {0}")]
31 MissingObjectKind(ObjectId),
32 #[error("Missing initial shared version for object {0}")]
33 MissingInitialSharedVersion(ObjectId),
34 #[error("Missing pure value")]
35 MissingPureValue,
36 #[error("Unknown shared object mutability for object {0}")]
37 SharedObjectMutability(ObjectId),
38 #[error("Unsupported literal")]
39 UnsupportedLiteral,
40}