Kagome
Polkadot Runtime Engine in C++17
kagome::primitives::dispatch_error Namespace Reference

Classes

struct  Arithmetic
 An arithmetic error. More...
 
struct  BadOrigin
 A bad origin. More...
 
struct  CannotLookup
 Failed to lookup some data. More...
 
struct  ConsumerRemaining
 At least one consumer is remaining so the account cannot be destroyed. More...
 
struct  Module
 A custom error in a module. More...
 
struct  NoProviders
 There are no providers so the account cannot be created. More...
 
struct  Other
 Some unclassified error occurred. More...
 
struct  Token
 An error to do with tokens. More...
 

Functions

 SCALE_EMPTY_CODER (Other)
 
 SCALE_EMPTY_CODER (CannotLookup)
 
 SCALE_EMPTY_CODER (BadOrigin)
 
template<typename Stream , typename = std::enable_if_t<Stream::is_encoder_stream>>
Stream & operator<< (Stream &s, const Module &v)
 
template<typename Stream , typename = std::enable_if_t<Stream::is_decoder_stream>>
Stream & operator>> (Stream &s, Module &v)
 
 SCALE_EMPTY_CODER (ConsumerRemaining)
 
 SCALE_EMPTY_CODER (NoProviders)
 

Class Documentation

struct kagome::primitives::dispatch_error::BadOrigin

A bad origin.

Definition at line 39 of file apply_result.hpp.

Collaboration diagram for kagome::primitives::dispatch_error::BadOrigin:
struct kagome::primitives::dispatch_error::CannotLookup

Failed to lookup some data.

Definition at line 36 of file apply_result.hpp.

Collaboration diagram for kagome::primitives::dispatch_error::CannotLookup:
struct kagome::primitives::dispatch_error::ConsumerRemaining

At least one consumer is remaining so the account cannot be destroyed.

Definition at line 66 of file apply_result.hpp.

Collaboration diagram for kagome::primitives::dispatch_error::ConsumerRemaining:
struct kagome::primitives::dispatch_error::Module

A custom error in a module.

Definition at line 42 of file apply_result.hpp.

Collaboration diagram for kagome::primitives::dispatch_error::Module:
Class Members
uint8_t error Module specific error value.
uint8_t index Module index, matching the metadata module index.
optional< string > message Optional error message.
struct kagome::primitives::dispatch_error::NoProviders

There are no providers so the account cannot be created.

Definition at line 69 of file apply_result.hpp.

Collaboration diagram for kagome::primitives::dispatch_error::NoProviders:
struct kagome::primitives::dispatch_error::Other

Some unclassified error occurred.

Definition at line 29 of file apply_result.hpp.

Collaboration diagram for kagome::primitives::dispatch_error::Other:
Class Members
string value

Function Documentation

template<typename Stream , typename = std::enable_if_t<Stream::is_encoder_stream>>
Stream& kagome::primitives::dispatch_error::operator<< ( Stream &  s,
const Module v 
)

Definition at line 54 of file apply_result.hpp.

template<typename Stream , typename = std::enable_if_t<Stream::is_decoder_stream>>
Stream& kagome::primitives::dispatch_error::operator>> ( Stream &  s,
Module v 
)

Definition at line 60 of file apply_result.hpp.

kagome::primitives::dispatch_error::SCALE_EMPTY_CODER ( Other  )
kagome::primitives::dispatch_error::SCALE_EMPTY_CODER ( CannotLookup  )
kagome::primitives::dispatch_error::SCALE_EMPTY_CODER ( BadOrigin  )
kagome::primitives::dispatch_error::SCALE_EMPTY_CODER ( ConsumerRemaining  )
kagome::primitives::dispatch_error::SCALE_EMPTY_CODER ( NoProviders  )