3 #ifndef _CL_NUMBER_IO_H
4 #define _CL_NUMBER_IO_H
7 #include "cln/number.h"
8 #include "cln/exception.h"
14 class read_number_exception : public runtime_exception {
16 explicit read_number_exception(const std::string & what)
17 : runtime_exception(what) {}
20 // Finish with bad syntax.
21 class read_number_bad_syntax_exception : public read_number_exception {
23 read_number_bad_syntax_exception(const char * string, const char * string_limit);
26 // Finish with junk after the number.
27 class read_number_junk_exception : public read_number_exception {
29 read_number_junk_exception(const char * string_rest, const char * string, const char * string_limit);
32 // Finish with premature EOF.
33 class read_number_eof_exception : public read_number_exception {
35 read_number_eof_exception();
42 #endif /* _CL_NUMBER_IO_H */