X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Ffile.h;fp=source%2Fio%2Ffile.h;h=47111609e8adb238f5bfef24132f81c6e8a9b8a2;hp=05aaf9565a08653f278773e010fee4acb6361779;hb=8f2711fba7a2817840038630d9cf9a2060ecbe8e;hpb=c7afef88380ebebc8c2b04e48664d73281ec8848 diff --git a/source/io/file.h b/source/io/file.h index 05aaf95..4711160 100644 --- a/source/io/file.h +++ b/source/io/file.h @@ -1,6 +1,7 @@ #ifndef MSP_IO_FILE_H_ #define MSP_IO_FILE_H_ +#include #include #include "base.h" #include "buffered.h" @@ -10,6 +11,13 @@ namespace Msp { namespace IO { +class file_not_found: public std::runtime_error +{ +public: + file_not_found(const std::string &fn): std::runtime_error(fn) { } +}; + + /** A class for reading and writing files.