Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
arithmetic_error.cpp
Go to the documentation of this file.
1
6
#include "
primitives/arithmetic_error.hpp
"
7
8
OUTCOME_CPP_DEFINE_CATEGORY
(
kagome::primitives
,
ArithmeticError
, e) {
9
using
E =
kagome::primitives::ArithmeticError
;
10
switch
(e) {
11
case
E::Underflow:
12
return
"An underflow would occur"
;
13
case
E::Overflow:
14
return
"An overflow would occur"
;
15
case
E::DivisionByZero:
16
return
"Division by zero"
;
17
}
18
return
"Unknown ArithmeticError"
;
19
}
kagome::primitives
Definition:
author_api.hpp:19
OUTCOME_CPP_DEFINE_CATEGORY
OUTCOME_CPP_DEFINE_CATEGORY(kagome::primitives, ArithmeticError, e)
Definition:
arithmetic_error.cpp:8
arithmetic_error.hpp
kagome::primitives::ArithmeticError
ArithmeticError
Definition:
arithmetic_error.hpp:15
core
primitives
arithmetic_error.cpp
Generated by
1.8.11