On this page

C

SafeRenderer::QSafeStringException Class

class SafeRenderer::QSafeStringException

An 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)

Detailed Description

Instance of this class is thrown when an exception occurs related to strings.

Member Type Documentation

enum class QSafeStringException::StringException

This enum describes the id of a thrown string exception.

ConstantValueDescription
SafeRenderer::QSafeStringException::StringException::TooLong0The string does not fit inside SafeRenderer::Constraints::MAX_LEN_OF_TEXT.
SafeRenderer::QSafeStringException::StringException::IndexOutOfBounds1The 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.