JayBeams
0.1
Another project to have fun coding.
jb
itch5
char_list_validator.cpp
Go to the documentation of this file.
1
#include "
jb/itch5/char_list_validator.hpp
"
2
3
#include <sstream>
4
#include <stdexcept>
5
6
void
jb::itch5::char_list_validation_failed
(
int
x) {
7
std::ostringstream os;
8
os <<
"enum value ('"
<< char(x) <<
"'="
<< x
9
<<
") does not match any of the expected values"
;
10
throw
std::runtime_error(os.str());
11
}
jb::itch5::char_list_validation_failed
void char_list_validation_failed(int x)
Helper function, raises an exception describing a mismatched value.
Definition:
char_list_validator.cpp:6
char_list_validator.hpp
Generated by
1.8.13