Commit 042548ff authored by Dominik Charousset's avatar Dominik Charousset

Add type_mismatch error code

parent c8c27d13
......@@ -53,6 +53,8 @@ enum class ec : uint8_t {
exponent_underflow,
/// Exponent of parsed double is greater than the maximum supported exponent.
exponent_overflow,
/// Parsed type does not match the expected type.
type_mismatch,
};
error make_error(ec code);
......
......@@ -36,6 +36,7 @@ constexpr const char* tbl[] = {
"integer_underflow",
"exponent_underflow",
"exponent_overflow",
"type_mismatch",
};
} // namespace <anonymous>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment