Module qtjambi
Package io.qt

Class QThreadAffinityException

All Implemented Interfaces:
Serializable

public class QThreadAffinityException extends RuntimeException
This exception is thrown when using thread-affine methods from inside another thread.
See Also:
  • 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

    • toString

      public String toString()
      Overrides:
      toString in class Throwable
    • object

      public QObject object()
      Returns:
      The object that was accessed
    • currentThread

      public QThread currentThread()
      Returns:
      The thread from which the access was made
    • expectedThread

      public QThread expectedThread()
      Returns:
      The expected thread