diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-18 20:25:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-18 20:25:21 +0100 |
| commit | 09d57c4e580533c959a0d0d07051f0aef9317628 (patch) | |
| tree | 989ec43fe87fc8e3c4a13c0cf754a8a5a349c757 /src/exceptions.cc | |
| parent | ee05b1c06aa5305b5c97dc74dc8f253bab99a2ac (diff) | |
Throw a better error on bad content kind.
Diffstat (limited to 'src/exceptions.cc')
| -rw-r--r-- | src/exceptions.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/exceptions.cc b/src/exceptions.cc index 1ded4483..5c486d09 100644 --- a/src/exceptions.cc +++ b/src/exceptions.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Carl Hetherington <cth@carlh.net> + Copyright (C) 2014-2018 Carl Hetherington <cth@carlh.net> This file is part of libdcp. @@ -72,6 +72,12 @@ MissingAssetError::MissingAssetError (boost::filesystem::path path, AssetType ty } +BadContentKindError::BadContentKindError (string content_kind) + : DCPReadError (String::compose("Bad content kind '%1'", content_kind)) +{ + +} + NotEncryptedError::NotEncryptedError (string const & what) : runtime_error (String::compose ("%1 is not encrypted", what)) { |
