| 55 | }; |
| 56 | |
| 57 | class invalid_utf16 : public exception { |
| 58 | uint16_t u16; |
| 59 | public: |
| 60 | invalid_utf16 (uint16_t u) : u16(u) {} |
| 61 | virtual const char* what() const throw() { return "Invalid UTF-16"; } |
| 62 | uint16_t utf16_word() const {return u16;} |
| 63 | }; |
| 64 | |
| 65 | class not_enough_room : public exception { |
| 66 | public: |