X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fexceptions.h;h=7220af35f5ba0d8c4603e0340d9324e74cf0812b;hb=5c9e39df078aab9f03ae186d0758d4d710f90bab;hp=5efb045b74906cdbb77e782d61023ba709c6c77d;hpb=c6871fe8617b3de03662b7630355059393bf8043;p=dcpomatic.git diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 5efb045b7..7220af35f 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -192,9 +192,19 @@ public: class KDMError : public std::runtime_error { public: - explicit KDMError (std::string s) - : std::runtime_error (s) - {} + KDMError (std::string s, std::string d); + + std::string summary () const { + return _summary; + } + + std::string detail () const { + return _detail; + } + +private: + std::string _summary; + std::string _detail; }; /** @class PixelFormatError