WrongThreadException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| WrongThreadException() |
Constructs a WrongThreadException with no detail message. |
| WrongThreadException(Throwable) |
Constructs a WrongThreadException with the given cause and a detail
message of |
| WrongThreadException(String) |
Constructs a WrongThreadException with the given detail message. |
| WrongThreadException(String, Throwable) |
Constructs a WrongThreadException with the given detail message and cause. |
WrongThreadException()
Constructs a WrongThreadException with no detail message.
[Android.Runtime.Register(".ctor", "()V", "", ApiSince=37)]
public WrongThreadException();
- Attributes
Remarks
Constructs a WrongThreadException with no detail message.
Java reference for java.lang.WrongThreadException.WrongThreadException.
Applies to
WrongThreadException(Throwable)
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).
[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "", ApiSince=37)]
public WrongThreadException(Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "", ApiSince=37)>]
new Java.Lang.WrongThreadException : Java.Lang.Throwable -> Java.Lang.WrongThreadException
Parameters
- cause
- Throwable
the cause, can be null
- Attributes
Remarks
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).
Java reference for java.lang.WrongThreadException.WrongThreadException.
Applies to
WrongThreadException(String)
Constructs a WrongThreadException with the given detail message.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=37)]
public WrongThreadException(string? s);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=37)>]
new Java.Lang.WrongThreadException : string -> Java.Lang.WrongThreadException
Parameters
- s
- String
the String that contains a detailed message, can be null
- Attributes
Remarks
Constructs a WrongThreadException with the given detail message.
Java reference for java.lang.WrongThreadException.WrongThreadException.
Applies to
WrongThreadException(String, Throwable)
Constructs a WrongThreadException with the given detail message and cause.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=37)]
public WrongThreadException(string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=37)>]
new Java.Lang.WrongThreadException : string * Java.Lang.Throwable -> Java.Lang.WrongThreadException
Parameters
- message
- String
the detail message, can be null
- cause
- Throwable
the cause, can be null
- Attributes
Remarks
Constructs a WrongThreadException with the given detail message and cause.
Java reference for java.lang.WrongThreadException.WrongThreadException.