40 #ifndef LIBDCP_EXCEPTIONS_H
41 #define LIBDCP_EXCEPTIONS_H
44 #include <boost/filesystem.hpp>
45 #include <boost/optional.hpp>
97 : std::runtime_error (message)
109 : std::runtime_error(message)
113 ReadError (std::string message, std::string detail);
117 std::string message ()
const {
121 boost::optional<std::string> detail ()
const {
126 std::string _message;
127 boost::optional<std::string> _detail;
166 explicit XMLError (std::string message)
167 : std::runtime_error (message)
247 bool starts_too_early ()
const {
248 return _starts_too_early;
252 bool _starts_too_early;
262 boost::optional<int> code ()
const {
267 boost::optional<int> _code;
An exception related to a file.
boost::filesystem::path _filename
boost::filesystem::path filename() const
An error that occurs during decompression of JPEG2000 data.
An exception related to an MXF file.
A miscellaneous exception.
Thrown when no ASSETMAP was found when trying to read a DCP.
An error raised when creating a DecryptedKDM object for assets that are not encrypted.
An exception thrown when a DCP_ASSERT fails; something that should not happen.
Any error that occurs when reading data from a DCP.
An exception caused by a reference (by UUID) to something which is not known.
Namespace for everything in libdcp.