C
SafeRenderer::QSafeBitmapException Class
class SafeRenderer::QSafeBitmapExceptionAn instance of QSafeBitmapException is thrown in case of an exception. More...
| Header: | #include <QSafeBitmapException> |
| Since: | QtSafeRenderer 2.1 |
| Inherits: | SafeRenderer::QSafeException |
Public Types
| enum class | BitmapException { OutOfDataCache, TooMany, DataCorrupted, SizeError } |
Public Functions
| QSafeBitmapException(SafeRenderer::QSafeBitmapException &&other) | |
| SafeRenderer::QSafeBitmapException & | operator=(SafeRenderer::QSafeBitmapException &&other) |
| SafeRenderer::QSafeBitmapException & | operator=(const SafeRenderer::QSafeBitmapException &other) |
Member Type Documentation
enum class QSafeBitmapException::BitmapException
This enum describes the id of a thrown bitmap and bitmap reader exceptions.
| Constant | Value | Description |
|---|---|---|
SafeRenderer::QSafeBitmapException::BitmapException::OutOfDataCache | 1 | The total bitmap data size exceeds SafeRenderer::Constraints::MEMORY_POOL_SIZE. |
SafeRenderer::QSafeBitmapException::BitmapException::TooMany | 2 | The number of bitmaps exceeds the Constraints::MAX_AMOUNT_OF_BITMAPS value. |
SafeRenderer::QSafeBitmapException::BitmapException::DataCorrupted | 3 | The crc does not match with the read data or header has unknown fields. For example, a filesystem error or a file being a pipe may have caused the error. |
SafeRenderer::QSafeBitmapException::BitmapException::SizeError | 0 | The amount of data in file is different from expected or data is zero size. |
Member Function Documentation
[constexpr noexcept default] QSafeBitmapException::QSafeBitmapException(SafeRenderer::QSafeBitmapException &&other)
Move-constructs an instance of QSafeBitmapException.
[delete] SafeRenderer::QSafeBitmapException &QSafeBitmapException::operator=(SafeRenderer::QSafeBitmapException &&other)
Move-assigns other to this QSafeBitmapException instance. This function is deleted.
[delete] SafeRenderer::QSafeBitmapException &QSafeBitmapException::operator=(const SafeRenderer::QSafeBitmapException &other)
Copy-assigns other to this QSafeBitmapException instance. This function is deleted.
Available under certain Qt licenses.
Find out more.