• Daniel Elstner's avatar
    New exception class. · 981ba25d
    Daniel Elstner authored
    * 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.
filetree.cc 29.6 KB