pub enum SemanticError {
ContractMismatch,
CodexMismatch,
DuplicatedApi(StrictHash),
MissedCodexLib(LibId),
ExcessiveCodexLib(LibId),
MissedApiLib(LibId),
ExcessiveApiLib(LibId),
InvalidSignature,
}
Expand description
Errors happening if it is attempted to construct an invalid semantic object Semantics
or
upgrade it inside a contract issuer or articles.
Variants§
ContractMismatch
contract id for the merged contract articles doesn’t match.
CodexMismatch
codex id for the merged articles doesn’t match.
DuplicatedApi(StrictHash)
articles contain duplicated API {0} under a different name.
MissedCodexLib(LibId)
library {0} is used by the contract codex verifiers but absent from the articles.
ExcessiveCodexLib(LibId)
library {0} is present in the contract articles but not used in the codex verifiers.
MissedApiLib(LibId)
library {0} is used by the contract APIs but absent from the articles.
ExcessiveApiLib(LibId)
library {0} is present in the contract articles but not used in the APIs.
InvalidSignature
invalid signature over the contract articles.
Trait Implementations§
Source§impl Clone for SemanticError
impl Clone for SemanticError
Source§fn clone(&self) -> SemanticError
fn clone(&self) -> SemanticError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SemanticError
impl Debug for SemanticError
Source§impl Display for SemanticError
impl Display for SemanticError
Source§impl Error for SemanticError
impl Error for SemanticError
1.30.0 · 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<SemanticError> for String
impl From<SemanticError> for String
Source§fn from(err: SemanticError) -> Self
fn from(err: SemanticError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SemanticError
impl PartialEq for SemanticError
impl Eq for SemanticError
impl StructuralPartialEq for SemanticError
Auto Trait Implementations§
impl Freeze for SemanticError
impl RefUnwindSafe for SemanticError
impl Send for SemanticError
impl Sync for SemanticError
impl Unpin for SemanticError
impl UnwindSafe for SemanticError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.