Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
\inmodule QtCore More...
#include <qproperty.h>
Public Types | |
enum | Type { NoError , BindingLoop , EvaluationError , UnknownError } |
This enum specifies which error occurred. More... | |
Public Member Functions | |
QPropertyBindingError () | |
Default constructs QPropertyBindingError. | |
QPropertyBindingError (Type type, const QString &description=QString()) | |
Constructs a QPropertyBindingError of type type with description as its description. | |
QPropertyBindingError (const QPropertyBindingError &other) | |
Copy-constructs QPropertyBindingError from other. | |
QPropertyBindingError & | operator= (const QPropertyBindingError &other) |
Copies other to this QPropertyBindingError. | |
QPropertyBindingError (QPropertyBindingError &&other) | |
Move-constructs QPropertyBindingError from other. | |
QPropertyBindingError & | operator= (QPropertyBindingError &&other) |
Move-assigns other to this QPropertyBindingError. | |
~QPropertyBindingError () | |
Destroys the QPropertyBindingError. | |
bool | hasError () const |
Type | type () const |
Returns the type of the QPropertyBindingError. | |
QString | description () const |
Returns a descriptive error message for the QPropertyBindingError if it has been set. | |
\inmodule QtCore
QPropertyBindingError is used by \l{The Property System}{the property system} to report errors that occurred when a binding was evaluated. Use \l type() to query which error occurred, and \l description() to extract an error message which might contain more details. If there is no error, QPropertyBindingError has type QPropertyBindingError::NoError
and hasError()
returns false.
Definition at line 130 of file qproperty.h.
This enum specifies which error occurred.
\value NoError No error occurred while evaluating the binding. \value BindingLoop Binding evaluation was stopped because a property depended on its own value. \value EvaluationError Binding evaluation was stopped for any other reason than a binding loop. For example, this value is used in the QML engine when an exception occurs while a binding is evaluated. \value UnknownError A generic error type used when neither of the other values is suitable. Calling \l description() might provide details.
Enumerator | |
---|---|
NoError | |
BindingLoop | |
EvaluationError | |
UnknownError |
Definition at line 133 of file qproperty.h.
QPropertyBindingError::QPropertyBindingError | ( | ) |
Default constructs QPropertyBindingError.
hasError() will return false, type will return NoError
and \l description() will return an empty string.
Definition at line 872 of file qproperty.cpp.
Constructs a QPropertyBindingError of type type with description as its description.
Definition at line 880 of file qproperty.cpp.
References d, NoError, and QPropertyBindingErrorPrivate::type.
QPropertyBindingError::QPropertyBindingError | ( | const QPropertyBindingError & | other | ) |
Copy-constructs QPropertyBindingError from other.
Definition at line 892 of file qproperty.cpp.
QPropertyBindingError::QPropertyBindingError | ( | QPropertyBindingError && | other | ) |
Move-constructs QPropertyBindingError from other.
other will be left in its default state.
Definition at line 910 of file qproperty.cpp.
QPropertyBindingError::~QPropertyBindingError | ( | ) |
Destroys the QPropertyBindingError.
Definition at line 928 of file qproperty.cpp.
QString QPropertyBindingError::description | ( | ) | const |
Returns a descriptive error message for the QPropertyBindingError if it has been set.
Definition at line 948 of file qproperty.cpp.
References QPropertyBindingErrorPrivate::description.
|
inline |
Definition at line 149 of file qproperty.h.
References d.
Referenced by QQmlAnyBinding::hasError().
QPropertyBindingError & QPropertyBindingError::operator= | ( | const QPropertyBindingError & | other | ) |
Copies other to this QPropertyBindingError.
Definition at line 900 of file qproperty.cpp.
References other().
QPropertyBindingError & QPropertyBindingError::operator= | ( | QPropertyBindingError && | other | ) |
Move-assigns other to this QPropertyBindingError.
other will be left in its default state.
Definition at line 919 of file qproperty.cpp.
References other().
QPropertyBindingError::Type QPropertyBindingError::type | ( | ) | const |
Returns the type of the QPropertyBindingError.
Definition at line 937 of file qproperty.cpp.
References NoError, and QPropertyBindingErrorPrivate::type.