Skip to main content

Failure

Enum Failure 

Source
pub enum Failure {
Show 30 variants TopLevelNotSupported, ZeroPublicKey, WrongNetwork { expected: NetworkIdentifier, actual: NetworkIdentifier, }, InvalidTransactionFee, ZeroAddress, LinkStartEpochInvalid, InvalidLinkRange { start: u32, end: u32, min: u32, max: u32, }, TransferMessageTooLarge { size: usize, max: usize, }, HashLockInvalidDuration { duration: u64, max: u64, }, SecretLockInvalidDuration { duration: u64, max: u64, }, ProofSizeOutOfBounds { size: usize, min: usize, max: usize, }, SecretMismatch, MetadataValueTooSmall, MetadataValueSizeDeltaTooLarge { delta: i16, size: usize, }, MetadataValueTooLarge { size: usize, max: usize, }, MosaicInvalidId, MosaicIdMismatch { expected: MosaicId, }, MosaicInvalidSupplyChangeAmount, MultisigMultipleDeletes, MultisigRedundantModification, MultisigAccountInBothSets, NamespaceInvalidDuration { duration: u64, min: u64, max: u64, }, NamespaceInvalidName, NamespaceNameIdMismatch { expected: NamespaceId, }, AccountRestrictionInvalidFlags(AccountRestrictionFlags), AccountRestrictionInvalidValue(TransactionType), AggregateNoTransactions, AggregateTooManyTransactions { count: usize, max: usize, }, AggregateTooManyCosignatures { count: usize, max: usize, }, AggregateRedundantCosignatures,
}
Expand description

ノードに弾かれる理由。名前は catapult の結果の名前から Failure_ と機能の名前を除いたもの。

Variants§

§

TopLevelNotSupported

アグリゲートの中でしか使えない種類を、単独で送ろうとしている。ノードは結果を返さずに捨てる

§

ZeroPublicKey

署名者か、紐づける公開鍵が0

§

WrongNetwork

§

InvalidTransactionFee

手数料が、バイト数に u32 の最大値を掛けた額より大きい

§

ZeroAddress

公開鍵が0のアカウントのアドレス

§

LinkStartEpochInvalid

投票鍵の最初のエポックが0

§

InvalidLinkRange

投票鍵のエポックの範囲が逆か、長さが設定の範囲の外

Fields

§start: u32
§end: u32
§min: u32
§max: u32
§

TransferMessageTooLarge

Fields

§size: usize
§max: usize
§

HashLockInvalidDuration

期間が0か上限(ブロック)より長い

Fields

§duration: u64
§max: u64
§

SecretLockInvalidDuration

期間が0か上限(ブロック)より長い

Fields

§duration: u64
§max: u64
§

ProofSizeOutOfBounds

Fields

§size: usize
§min: usize
§max: usize
§

SecretMismatch

プルーフのハッシュがシークレットと合わない

§

MetadataValueTooSmall

メタデータの値が空

§

MetadataValueSizeDeltaTooLarge

値の長さの変化が、値の長さより大きい

Fields

§delta: i16
§size: usize
§

MetadataValueTooLarge

Fields

§size: usize
§max: usize
§

MosaicInvalidId

モザイクの ID が0

§

MosaicIdMismatch

モザイクの ID が、署名者のアドレスとノンスから求めたものと合わない

Fields

§expected: MosaicId
§

MosaicInvalidSupplyChangeAmount

発行量の増減が0

§

MultisigMultipleDeletes

一度に外す連署者が2人以上

§

MultisigRedundantModification

同じ連署者を2回足している

§

MultisigAccountInBothSets

同じアドレスを足して外している

§

NamespaceInvalidDuration

ルートのネームスペースの期間(ブロック)が、0(無期限)でなく、設定の範囲の外

Fields

§duration: u64
§min: u64
§max: u64
§

NamespaceInvalidName

名前が空か長すぎるか、使えない文字がある

§

NamespaceNameIdMismatch

ネームスペースの ID が、親の ID と名前から求めたものと合わない

Fields

§expected: NamespaceId
§

AccountRestrictionInvalidFlags(AccountRestrictionFlags)

制限の種類と向きの組み合わせが使えない

§

AccountRestrictionInvalidValue(TransactionType)

送れる種類の制限に、トランザクションの種類でない値を足している

§

AggregateNoTransactions

§

AggregateTooManyTransactions

Fields

§count: usize
§max: usize
§

AggregateTooManyCosignatures

連署が多すぎる。count は外側の署名者も数える

Fields

§count: usize
§max: usize
§

AggregateRedundantCosignatures

同じアカウントが2回署名している。外側の署名者も数える

Implementations§

Source§

impl Failure

Source

pub fn result(&self) -> Option<(&'static str, u32)>

catapult の結果の名前と値。REST のトランザクションのステータスに出るもの。 ノードが結果を返さずに捨てるものは None。

Trait Implementations§

Source§

impl Clone for Failure

Source§

fn clone(&self) -> Failure

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Failure

Source§

impl Debug for Failure

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Failure

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Failure

Source§

impl PartialEq for Failure

Source§

fn eq(&self, other: &Failure) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Failure

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.