Cleanup: whitespace.
[dcpomatic.git] / src / lib / exceptions.h
index 618a03f4326510c8e532481ce899a7fb1dfcf18e..80d4801daf83d24854d2b6f1e23a11b6497eab9a 100644 (file)
@@ -351,8 +351,8 @@ public:
        explicit InvalidSignerError (std::string reason);
 };
 
-class ProgrammingError : public std::runtime_error
 
+class ProgrammingError : public std::runtime_error
 {
 public:
        ProgrammingError (std::string file, int line, std::string message = "");
@@ -407,20 +407,25 @@ public:
 class CopyError : public std::runtime_error
 {
 public:
-       CopyError (std::string s, boost::optional<int> n = boost::optional<int>());
+       CopyError (std::string s, boost::optional<int> ext4_error = boost::optional<int>(), boost::optional<int> platform_error = boost::optional<int>());
        virtual ~CopyError () throw () {}
 
        std::string message () const {
                return _message;
        }
 
-       boost::optional<int> number () const {
-               return _number;
+       boost::optional<int> ext4_number() const {
+               return _ext4_number;
+       }
+
+       boost::optional<int> platform_number() const {
+               return _platform_number;
        }
 
 private:
        std::string _message;
-       boost::optional<int> _number;
+       boost::optional<int> _ext4_number;
+       boost::optional<int> _platform_number;
 };
 
 
@@ -461,8 +466,8 @@ class PrivilegeError : public std::runtime_error
 {
 public:
        explicit PrivilegeError (std::string s)
-                       : std::runtime_error (s)
-               {}
+               : std::runtime_error (s)
+       {}
 };