Class WrongThreadException
public class WrongThreadException extends RuntimeException
{
// Constructors
public WrongThreadException();
public WrongThreadException(String s);
}
This class represents objects that are thrown when a method call cannot be made because it was called on the wrong thread. Typically, WrongThreadException objects are thrown when an operation invokes an Apartment Model Component Object Model (COM) object on the wrong thread.
RuntimeException
|
+--WrongThreadException
public WrongThreadException();
Creates an instance of the WrongThreadException class.
public WrongThreadException(String s);
Creates an instance of the WrongThreadException class that contains a description of the exception.
Parameter | Description |
s
| A description of the exception.
|