Enum cubist_sdk::CubistSdkError
source · pub enum CubistSdkError {
Show 27 variants
MissingTarget(Target),
MissingManifest(Target, ConfigError),
MissingNetworkConfig(Target),
ParseContractError(PathBuf, String, Option<WrapperError>),
NoArtifactsDir(PathBuf, WrapperError),
LoadBridgeError(ContractFQN, PathBuf, WrapperError),
CompileError(PathBuf, String, Option<WrapperError>),
CleanError(PathBuf, WrapperError),
CreateClientError(Target, SecretUrl, Option<WrapperError>),
DeployError(ContractFQN, Target, String),
CallError {
contract: ContractFQN,
target: Target,
method_name: String,
source: WrapperError,
},
ApproveCallerError {
caller_contract: ContractFQN,
shim_contract: ContractFQN,
target: Target,
},
ContractNotDeployed {
contract: ContractFQN,
target: Target,
},
SaveDeploymentManifestError(PathBuf, WrapperError),
SaveDeploymentReceiptError(PathBuf, WrapperError),
DeserializeDeploymentReceiptError(PathBuf, WrapperError),
ReadFileError(PathBuf, Error),
ParseError(PathBuf, Vec<Diagnostic>),
UnicodeImportError(String, PathBuf),
AbsolutePathError(String, PathBuf),
RelativePathError(String, PathBuf),
CanonicalizationError(String, PathBuf, Option<Error>),
AccountsError(Target, String),
LoadContractNoReceipts(ContractFQN, Target),
LoadContractTooManyReceipts(ContractFQN, Target),
LocalChainsError(Error),
ConfigError(ConfigError),
}
Expand description
Errors raised by this crate.
Variants§
MissingTarget(Target)
Error raised when a requested target is not found in the Cubist config.
MissingManifest(Target, ConfigError)
Error raised when no compilation manifest is found.
MissingNetworkConfig(Target)
Error raised when network configuration is missing for target
ParseContractError(PathBuf, String, Option<WrapperError>)
Error raised when a compiled contract cannot be loaded.
NoArtifactsDir(PathBuf, WrapperError)
Error raised when artifacts directory cannot be read.
LoadBridgeError(ContractFQN, PathBuf, WrapperError)
Error raised when loading bridge file fails
CompileError(PathBuf, String, Option<WrapperError>)
Error raised when a compilation fails.
CleanError(PathBuf, WrapperError)
Error raised when cleaning build directory fails
CreateClientError(Target, SecretUrl, Option<WrapperError>)
Error raised when creating a deployer fails.
DeployError(ContractFQN, Target, String)
Error raised when deployment fails.
CallError
Error raised when a contract method call fails.
ApproveCallerError
Fields
caller_contract: ContractFQN
Native contract that had to be added to approved callers for the shim contract below
shim_contract: ContractFQN
Shim contract whose access control had to be updated
Error raised when updating a shim contract’s access control fails.
ContractNotDeployed
Error raised when a contract call is attempted before the contract has been deployed.
SaveDeploymentManifestError(PathBuf, WrapperError)
Error raised when saving deployment manifest fails
SaveDeploymentReceiptError(PathBuf, WrapperError)
Error raised when saving deployment receipt fails
DeserializeDeploymentReceiptError(PathBuf, WrapperError)
Error raised when saving deployment receipt fails
ReadFileError(PathBuf, Error)
A generic error when reading a file
ParseError(PathBuf, Vec<Diagnostic>)
Failed to parse contract file
UnicodeImportError(String, PathBuf)
A file contained a unicode import
AbsolutePathError(String, PathBuf)
An absolute path import points into the contracts root directory. This is disallowed because Cubist later moves the code in the contracts root.
RelativePathError(String, PathBuf)
An imported relative path points outside the contracts root, and exists in a file within the contracts root. This is disallowed once again because Cubist moves the code in the contracts root.
CanonicalizationError(String, PathBuf, Option<Error>)
Couldn’t canonicalize paths needed for checking for absolute and relative path errors
AccountsError(Target, String)
Error raised when retrieving accounts from the chain provider fails
LoadContractNoReceipts(ContractFQN, Target)
Error raised when trying to load a contract when no deployment receipts are found for it.
LoadContractTooManyReceipts(ContractFQN, Target)
Error raised when trying to load a contract when more than one deployment receipt is found for it.
LocalChainsError(Error)
Error forwarded from Cubist localchains
ConfigError(ConfigError)
Error forwarded from Cubist config
Trait Implementations§
source§impl Debug for CubistSdkError
impl Debug for CubistSdkError
source§impl Display for CubistSdkError
impl Display for CubistSdkError
source§impl Error for CubistSdkError
impl Error for CubistSdkError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<ConfigError> for CubistSdkError
impl From<ConfigError> for CubistSdkError
source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for CubistSdkError
impl Send for CubistSdkError
impl Sync for CubistSdkError
impl Unpin for CubistSdkError
impl !UnwindSafe for CubistSdkError
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
§type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
source§fn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
§fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
§fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
§fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
§fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
§fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
§fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
§fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
§fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
§fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
§fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
§fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
§fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
§fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
§fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
§fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
§fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
§fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
§fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
§fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
§fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
§fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
§fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
§fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
§fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
§fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg
or
a color-specific method, such as OwoColorize::green
, Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg
or
a color-specific method, such as OwoColorize::on_yellow
, Read more