NetworkException Costruttori

Definizione

Overload

Nome Descrizione
NetworkException(IntPtr, JniHandleOwnership)
NetworkException(String, Throwable)

Costruisce un'eccezione causata da un errore di rete.

NetworkException(IntPtr, JniHandleOwnership)

protected NetworkException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Net.Http.NetworkException : nativeint * Android.Runtime.JniHandleOwnership -> Android.Net.Http.NetworkException

Parametri

javaReference
IntPtr

nativeint

Si applica a

NetworkException(String, Throwable)

Costruisce un'eccezione causata da un errore di rete.

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

Parametri

message
String

spiegazione dell'errore.

cause
Throwable

la causa ,che viene salvata per il recupero successivo dal java.io.IOException#getCause getCause() metodo . È consentito un valore Null e indica che la causa è inesistente o sconosciuta.

Attributi

Commenti

Costruisce un'eccezione causata da un errore di rete.

per android.net.http.NetworkException.NetworkException(java.lang.String, java.lang.Throwable).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a