error handling cleanup

This commit is contained in:
Glenn Maynard
2004-06-06 23:26:11 +00:00
parent ba37f3bb47
commit baa6a9282f
2 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ public:
Err(const std::string &s) : Exception(IO_ERROR, s) {}
};
class OpenErr : public Err {public: OpenErr(const std::string &filename) : Err("FileSink: error opening file for writing: " + filename) {}};
class WriteErr : public Err {public: WriteErr() : Err("FileSink: error writing file") {}};
struct WriteErr : public Err { WriteErr(const RageFile &f) : Err("RageFileSink(" + f.GetPath() + "): write error: " + f.GetError()) {}};
RageFileSink() {}
RageFileSink(const char *filename, bool binary=true)