Language

QueryLocationException Constructors

Definition

Overloads

Name Description
QueryLocationException(String)

Creates a location query exception with an unspecified error code.

QueryLocationException(String, QueryLocationErrorReason)

Creates a location query exception with a message and error code.

QueryLocationException(String, QueryLocationErrorReason, Throwable)

Creates a location query exception with a message, error code, and cause.

QueryLocationException(String)

Creates a location query exception with an unspecified error code.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=34)]
public QueryLocationException(string? message);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=34)>]
new Android.Telecom.QueryLocationException : string -> Android.Telecom.QueryLocationException

Parameters

message
String

The text used to describe the location query failure, or null.

Attributes

Remarks

The error code is Unspecified.

Applies to

QueryLocationException(String, QueryLocationErrorReason)

Creates a location query exception with a message and error code.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=34)]
public QueryLocationException(string? message, Android.Telecom.QueryLocationErrorReason code);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=34)>]
new Android.Telecom.QueryLocationException : string * Android.Telecom.QueryLocationErrorReason -> Android.Telecom.QueryLocationException

Parameters

message
String

The text used to describe the location query failure, or null.

Attributes

Remarks

The error code is stored without validation.

Applies to

QueryLocationException(String, QueryLocationErrorReason, Throwable)

Creates a location query exception with a message, error code, and cause.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/Throwable;)V", "", ApiSince=34)]
public QueryLocationException(string? message, Android.Telecom.QueryLocationErrorReason code, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/Throwable;)V", "", ApiSince=34)>]
new Android.Telecom.QueryLocationException : string * Android.Telecom.QueryLocationErrorReason * Java.Lang.Throwable -> Android.Telecom.QueryLocationException

Parameters

message
String

The text used to describe the location query failure, or null.

cause
Throwable

The exception that caused this failure, or null.

Attributes

Remarks

The error code is stored without validation.

Applies to