Fix some comment typos.
[dcpomatic.git] / src / lib / exceptions.h
index 5cbf6994154dadaeda169130cd82ac2ddaf48637..7c9509800ed3a40bf35f2cd88ce45755c44a03f8 100644 (file)
@@ -253,9 +253,19 @@ public:
 class NetworkError : public std::runtime_error
 {
 public:
-       explicit NetworkError (std::string s)
-               : std::runtime_error (s)
-       {}
+       explicit NetworkError (std::string s, boost::optional<std::string> d = boost::optional<std::string>());
+
+       std::string summary () const {
+               return _summary;
+       }
+
+       boost::optional<std::string> detail () const {
+               return _detail;
+       }
+
+private:
+       std::string _summary;
+       boost::optional<std::string> _detail;
 };
 
 
@@ -377,7 +387,8 @@ public:
 class GLError : public std::runtime_error
 {
 public:
-       GLError (char const * last, int e);
+       GLError (char const* last, int e);
+       GLError (char const* message);
 };
 
 
@@ -405,7 +416,7 @@ private:
 
 
 /** @class CommunicationFailedError
- *  @brief Communcation between dcpomatic2_disk and _disk_writer failed somehow.
+ *  @brief Communication between dcpomatic2_disk and _disk_writer failed somehow.
  */
 class CommunicationFailedError : public CopyError
 {