pub enum TaiError {
}Expand description
The single error type returned by every fallible tai-core function.
Variants§
Config(String)
A configuration file could not be loaded or was malformed.
Signer(String)
A signer operation failed.
Rpc(String)
A Sui RPC call failed.
RpcShape(String)
The RPC server returned an unexpected shape.
InvalidAddress(String)
An address or object ID could not be parsed.
Decode(String)
A Move object could not be decoded from its on-chain representation.
TxFailed(String)
A transaction was constructed but failed to execute.
Io(Error)
I/O failure (filesystem etc).
SerdeJson(Error)
JSON serialization failed.
Http(Error)
HTTP transport failed.
Bcs(Error)
BCS serialization failed.
Hex(FromHexError)
Hex decode failed.
Other(Error)
Catch-all wrapping anyhow::Error for things that don’t merit a
dedicated variant.
Trait Implementations§
Source§impl Error for TaiError
impl Error for TaiError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<FromHexError> for TaiError
impl From<FromHexError> for TaiError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TaiError
impl !RefUnwindSafe for TaiError
impl Send for TaiError
impl Sync for TaiError
impl Unpin for TaiError
impl UnsafeUnpin for TaiError
impl !UnwindSafe for TaiError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more