Some work on making KDMs in Film
[dcpomatic.git] / src / lib / exceptions.h
index be5959d642b5bb255a080c08bcbd572b6ab6df6d..06177863ab27e5720125c91b0320827c627251b7 100644 (file)
@@ -77,6 +77,9 @@ public:
 class FileError : public StringError
 {
 public:
+       /** @param m Error message.
+        *  @param f Name of the file that this exception concerns.
+        */
        FileError (std::string m, std::string f)
                : StringError (m)
                , _file (f)
@@ -84,11 +87,13 @@ public:
 
        virtual ~FileError () throw () {}
 
+       /** @return name of the file that this exception concerns */
        std::string file () const {
                return _file;
        }
 
 private:
+       /** name of the file that this exception concerns */
        std::string _file;
 };
        
@@ -119,7 +124,7 @@ public:
 
 
 /** @class ReadFileError.
- *  @brief Indicates that some error occurred when trying to write to a file
+ *  @brief Indicates that some error occurred when trying to read from a file
  */
 class ReadFileError : public FileError
 {
@@ -127,7 +132,7 @@ public:
        /** @param f File that we were trying to read from.
         *  @param e errno value, or 0.
         */
-       ReadFileError (std::string f, int e)
+       ReadFileError (std::string f, int e = 0)
                : FileError ("", f)
        {
                std::stringstream s;
@@ -220,18 +225,10 @@ public:
        {}
 };
 
-class PlayError : public StringError
-{
-public:
-       PlayError (std::string s)
-               : StringError (s)
-       {}
-};
-
-class DVDError : public StringError
+class KDMError : public StringError
 {
 public:
-       DVDError (std::string s)
+       KDMError (std::string s)
                : StringError (s)
        {}
 };