APIdia Launch Partner
Top Description Fields Constructors
java.lang

public final Class WrongThreadException

extends RuntimeException
Class Inheritance

Thrown to indicate that a method has been called on the wrong thread.
Since
19

Field Summary

Modifier and TypeField and Description
pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
WrongThreadException()

Constructs a WrongThreadException with no detail message.

public
WrongThreadException(String
the String that contains a detailed message, can be null
s
)

Constructs a WrongThreadException with the given detail message.

public
WrongThreadException(String
the detail message, can be null
message
,
Throwable
the cause, can be null
cause
)

Constructs a WrongThreadException with the given detail message and cause.

public
WrongThreadException(Throwable
the cause, can be null
cause
)

Constructs a WrongThreadException with the given cause and a detail message of (cause==null ?

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Annotations
@Serial

Constructor Detail

WrongThreadExceptionback to summary
public WrongThreadException()

Constructs a WrongThreadException with no detail message.

WrongThreadExceptionback to summary
public WrongThreadException(String s)

Constructs a WrongThreadException with the given detail message.

Parameters
s:String

the String that contains a detailed message, can be null

WrongThreadExceptionback to summary
public WrongThreadException(String message, Throwable cause)

Constructs a WrongThreadException with the given detail message and cause.

Parameters
message:String

the detail message, can be null

cause:Throwable

the cause, can be null

WrongThreadExceptionback to summary
public WrongThreadException(Throwable cause)

Constructs a WrongThreadException with the given cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).

Parameters
cause:Throwable

the cause, can be null