IOException 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
IOException() |
Constructs an |
IOException(Throwable) |
Constructs an |
IOException(String) |
Constructs an |
IOException(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
IOException(String, Throwable) |
Constructs an |
IOException()
Constructs an IOException
with null
as its error detail message.
[Android.Runtime.Register(".ctor", "()V", "")]
public IOException ();
- Attributes
Remarks
Constructs an IOException
with null
as its error detail message.
Java documentation for java.io.IOException.IOException()
.
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
IOException(Throwable)
Constructs an IOException
with the specified 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", "")]
public IOException (Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")>]
new Java.IO.IOException : Java.Lang.Throwable -> Java.IO.IOException
Parameters
- cause
- Throwable
The cause (which is saved for later retrieval by the
#getCause()
method). (A null value is permitted,
and indicates that the cause is nonexistent or unknown.)
- Attributes
Remarks
Constructs an IOException
with the specified cause and a detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of cause
). This constructor is useful for IO exceptions that are little more than wrappers for other throwables.
Added in 1.6.
Java documentation for java.io.IOException.IOException(java.lang.Throwable)
.
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
IOException(String)
Constructs an IOException
with the specified detail message.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public IOException (string? message);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.IO.IOException : string -> Java.IO.IOException
Parameters
- message
- String
The detail message (which is saved for later retrieval
by the #getMessage()
method)
- Attributes
Remarks
Constructs an IOException
with the specified detail message.
Java documentation for java.io.IOException.IOException(java.lang.String)
.
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
IOException(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected IOException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.IO.IOException : nativeint * Android.Runtime.JniHandleOwnership -> Java.IO.IOException
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
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
IOException(String, Throwable)
Constructs an IOException
with the specified detail message
and cause.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")]
public IOException (string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")>]
new Java.IO.IOException : string * Java.Lang.Throwable -> Java.IO.IOException
Parameters
- message
- String
The detail message (which is saved for later retrieval
by the #getMessage()
method)
- cause
- Throwable
The cause (which is saved for later retrieval by the
#getCause()
method). (A null value is permitted,
and indicates that the cause is nonexistent or unknown.)
- Attributes
Remarks
Constructs an IOException
with the specified detail message and cause.
Note that the detail message associated with cause
is not automatically incorporated into this exception's detail message.
Added in 1.6.
Java documentation for java.io.IOException.IOException(java.lang.String, java.lang.Throwable)
.
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.