Skip to content
  • 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.
    981ba25d
To find the state of this project's repository at the time of any of these versions, check out the tags.