NoSuchElementException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| NoSuchElementException() |
构造一个 |
| NoSuchElementException(Throwable) |
构造具有指定原因的 A |
| NoSuchElementException(String) |
构造一个 |
| NoSuchElementException(IntPtr, JniHandleOwnership) |
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。 |
| NoSuchElementException(String, Throwable) |
构造 |
NoSuchElementException()
构造一个 NoSuchElementException 用作 null 其错误消息字符串的字符串。
[Android.Runtime.Register(".ctor", "()V", "")]
public NoSuchElementException();
- 特性
注解
构造一个 NoSuchElementException 用作 null 其错误消息字符串的字符串。
Java文档java.util.NoSuchElementException.NoSuchElementException()。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
NoSuchElementException(Throwable)
构造具有指定原因的 A NoSuchElementException 。
[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "", ApiSince=34)]
public NoSuchElementException(Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "", ApiSince=34)>]
new Java.Util.NoSuchElementException : Java.Lang.Throwable -> Java.Util.NoSuchElementException
参数
- cause
- Throwable
原因(此方法保存供以后检索 #getCause() )
- 特性
注解
构造具有指定原因的 A NoSuchElementException 。 详细信息消息设置为 (cause == null ? null : cause.toString()) (通常包含类和详细信息消息 cause)。
已在 15 中添加。
Java文档java.util.NoSuchElementException.NoSuchElementException(java.lang.Throwable)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
NoSuchElementException(String)
构造一个 NoSuchElementException引用,保存对错误消息字符串 s 的引用,以便以后通过 getMessage 该方法进行检索。
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public NoSuchElementException(string? s);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Util.NoSuchElementException : string -> Java.Util.NoSuchElementException
参数
- s
- String
详细信息消息。
- 特性
注解
构造一个 NoSuchElementException引用,保存对错误消息字符串 s 的引用,以便以后通过 getMessage 该方法进行检索。
Java文档java.util.NoSuchElementException.NoSuchElementException(java.lang.String)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
NoSuchElementException(IntPtr, JniHandleOwnership)
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。
protected NoSuchElementException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.NoSuchElementException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.NoSuchElementException
参数
- transfer
- JniHandleOwnership
指示 JniHandleOwnership如何处理 javaReference
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
NoSuchElementException(String, Throwable)
构造 NoSuchElementException 具有指定的详细信息消息和原因。
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=34)]
public NoSuchElementException(string? s, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=34)>]
new Java.Util.NoSuchElementException : string * Java.Lang.Throwable -> Java.Util.NoSuchElementException
参数
- s
- String
详细信息消息或 null
- cause
- Throwable
原因(此方法保存供以后检索 #getCause() )或 null
- 特性
注解
构造 NoSuchElementException 具有指定的详细信息消息和原因。
已在 15 中添加。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。