diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-14 23:11:33 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-14 23:11:33 +0200 |
| commit | f447a804d6e13306a0b959c7ee445c8a84fe1a84 (patch) | |
| tree | 19aacf8cd1a1e8f1c4ead7f6defb9f057588698a /src/exceptions.h | |
| parent | 4d6c8aaf0167cde3bb63e9014604243bdc47b1a1 (diff) | |
Add an explicit exception for J2K decompression failures.
Diffstat (limited to 'src/exceptions.h')
| -rw-r--r-- | src/exceptions.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/exceptions.h b/src/exceptions.h index cd4f5fbb..b58d0240 100644 --- a/src/exceptions.h +++ b/src/exceptions.h @@ -121,6 +121,18 @@ private: }; +/** @class J2KDecompressionError + * @brief An error that occurs during decompression of JPEG2000 data. + */ +class J2KDecompressionError : public ReadError +{ +public: + explicit J2KDecompressionError (std::string message) + : ReadError (message) + {} +}; + + class BadContentKindError : public ReadError { public: |
