C
SafeRenderer::QSafeStringException Class
class SafeRenderer::QSafeStringExceptionAn instance of QSafeStringException is thrown in case of an exception. More...
| Header: | #include <QSafeStringException> |
| Since: | QtSafeRenderer 2.1 |
| Inherits: | SafeRenderer::QSafeException |
Public Types
| enum class | StringException { TooLong, IndexOutOfBounds } |
Public Functions
| QSafeStringException(SafeRenderer::QSafeStringException &&other) | |
| SafeRenderer::QSafeStringException & | operator=(SafeRenderer::QSafeStringException &&other) |
| SafeRenderer::QSafeStringException & | operator=(const SafeRenderer::QSafeStringException &other) |
Member Type Documentation
enum class QSafeStringException::StringException
This enum describes the id of a thrown string exception.
| Constant | Value | Description |
|---|---|---|
SafeRenderer::QSafeStringException::StringException::TooLong | 0 | The string does not fit inside SafeRenderer::Constraints::MAX_LEN_OF_TEXT. |
SafeRenderer::QSafeStringException::StringException::IndexOutOfBounds | 1 | The requested index is out of the data bounds 0U <= index < SafeRenderer::Constraints::MAX_LEN_OF_TEXT |
Member Function Documentation
[constexpr noexcept default] QSafeStringException::QSafeStringException(SafeRenderer::QSafeStringException &&other)
Move-constructs an instance of QSafeStringException.
[delete] SafeRenderer::QSafeStringException &QSafeStringException::operator=(SafeRenderer::QSafeStringException &&other)
Move-assigns other to this QSafeStringException instance. This function is deleted.
[delete] SafeRenderer::QSafeStringException &QSafeStringException::operator=(const SafeRenderer::QSafeStringException &other)
Copy-assigns other to this QSafeStringException instance. This function is deleted.
Available under certain Qt licenses.
Find out more.