Kagome
Polkadot Runtime Engine in C++17
arithmetic_error.hpp File Reference
#include <cstdint>
#include "outcome/outcome.hpp"
Include dependency graph for arithmetic_error.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 kagome::primitives
 

Enumerations

enum  kagome::primitives::ArithmeticError : uint8_t { kagome::primitives::ArithmeticError::Underflow = 1, kagome::primitives::ArithmeticError::Overflow, kagome::primitives::ArithmeticError::DivisionByZero }
 

Functions

template<class Stream , typename = std::enable_if_t<Stream::is_encoder_stream>>
Stream & kagome::primitives::operator<< (Stream &s, const ArithmeticError &v)
 
template<class Stream , typename = std::enable_if_t<Stream::is_decoder_stream>>
Stream & kagome::primitives::operator>> (Stream &s, ArithmeticError &v)
 
 OUTCOME_HPP_DECLARE_ERROR (kagome::primitives, ArithmeticError)
 

Function Documentation

OUTCOME_HPP_DECLARE_ERROR ( kagome::primitives  ,
ArithmeticError   
)