java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.qt.QThreadAffinityException
- All Implemented Interfaces:
Serializable
This exception is thrown when using thread-affine methods from inside another thread.
- See Also:
-
Constructor Summary
ConstructorDescriptionQThreadAffinityException
(String message, QObject object, QThread expectedThread, QThread currentThread) Creates a new QThreadAffinityException with the given message, object and thread. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
QThreadAffinityException
public QThreadAffinityException(String message, QObject object, QThread expectedThread, QThread currentThread) Creates a new QThreadAffinityException with the given message, object and thread.- Parameters:
message
- Describes the affinity exception.object
- The object that was accessed.expectedThread
- The expected thread.currentThread
- The thread from which the access was made.
-
-
Method Details