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.

code
QueryLocationErrorReason

Value is one of the following: ERROR_REQUEST_TIME_OUT; ERROR_PREVIOUS_REQUEST_EXISTS; ERROR_NOT_PERMITTED; ERROR_NOT_ALLOWED_FOR_NON_EMERGENCY_CONNECTIONS; ERROR_SERVICE_UNAVAILABLE; ERROR_UNSPECIFIED

Attributes

Remarks

Android reference for android.telecom.QueryLocationException.QueryLocationException.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

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.

code
QueryLocationErrorReason

Value is one of the following: ERROR_REQUEST_TIME_OUT; ERROR_PREVIOUS_REQUEST_EXISTS; ERROR_NOT_PERMITTED; ERROR_NOT_ALLOWED_FOR_NON_EMERGENCY_CONNECTIONS; ERROR_SERVICE_UNAVAILABLE; ERROR_UNSPECIFIED

cause
Throwable

The exception that caused this failure, or null.

Attributes

Remarks

Android reference for android.telecom.QueryLocationException.QueryLocationException.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to