Pass force-cpp11 down to libcxml.
[libdcp.git] / src / exceptions.h
index 1e9bd2d7cad23e07d75d739cc1f3696d2ddc8db7..ccf7a081523b18e224360be563a9d3bd53a43b55 100644 (file)
@@ -119,30 +119,6 @@ private:
        boost::optional<std::string> _detail;
 };
 
-/** @class MissingAssetError
- *  @brief An error of a missing asset.
- */
-class MissingAssetError : public DCPReadError
-{
-public:
-       enum AssetType {
-               MAIN_PICTURE,  //< main picture is missing
-               MAIN_SOUND,    //< main sound is missing
-               MAIN_SUBTITLE, //< main subtitle is missing
-               UNKNOWN        //< something is missing but we don't know what
-       };
-
-       MissingAssetError (boost::filesystem::path, AssetType = UNKNOWN);
-       ~MissingAssetError () throw () {}
-
-       boost::filesystem::path path () const {
-               return _path;
-       }
-
-private:
-       boost::filesystem::path _path;
-};
-
 class BadContentKindError : public DCPReadError
 {
 public:
@@ -198,12 +174,6 @@ public:
        ProgrammingError (std::string file, int line);
 };
 
-class MismatchedStandardError : public DCPReadError
-{
-public:
-       MismatchedStandardError ();
-};
-
 class KDMDecryptionError : public std::runtime_error
 {
 public:
@@ -228,10 +198,17 @@ public:
        MissingSubtitleImageError (std::string id);
 };
 
-class EmptyAssetPathError : public DCPReadError
+class BadKDMDateError : public std::runtime_error
 {
 public:
-       EmptyAssetPathError (std::string id);
+       BadKDMDateError (bool starts_too_early);
+
+       bool starts_too_early () const {
+               return _starts_too_early;
+       }
+
+private:
+       bool _starts_too_early;
 };
 
 }