New exception class.
* src/fileio.h (ErrorBinaryFile): New exception class. * src/fileio.cc (load_iochannel): Throw ErrorBinaryFile if the input stream contains '\0' bytes, rather than just returning a null pointer. (load_file): Throw ErrorBinaryFile if the file could not be loaded in either of the specified encodings. * src/filetree.cc (FileTree::load_file_with_fallback): Handle the ErrorBinaryFile exception.
Showing with 27 additions and 15 deletions