Kagome
Polkadot Runtime Engine in C++17
arithmetic_error.cpp
Go to the documentation of this file.
1 
7 
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 }
OUTCOME_CPP_DEFINE_CATEGORY(kagome::primitives, ArithmeticError, e)