throwable.html
来自「j2se5-api-zh,java文档的中文版本」· HTML 代码 · 共 1,127 行 · 第 1/5 页
HTML
1,127 行
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TH ALIGN="left" COLSPAN="2">抛出 <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> 的 <A HREF="../package-summary.html">java.lang</A> 中的方法</FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B>Object.</B><B><A HREF="../Object.html#finalize()">finalize</A></B>()</CODE><BR> 当垃圾回收器确定不存在对该对象的更多引用时,由对象的垃圾回收器调用此方法。</TD></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TH ALIGN="left" COLSPAN="2">参数类型为 <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> 的 <A HREF="../package-summary.html">java.lang</A> 中的构造方法</FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../ClassNotFoundException.html#ClassNotFoundException(java.lang.String, java.lang.Throwable)">ClassNotFoundException</A></B>(<A HREF="../String.html" title="java.lang 中的类">String</A> s, <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> ex)</CODE><BR> 构造一个 <code>ClassNotFoundException</code>,它带有指定详细消息和加载类时引发的可选异常。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../Error.html#Error(java.lang.String, java.lang.Throwable)">Error</A></B>(<A HREF="../String.html" title="java.lang 中的类">String</A> message, <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 构造带指定详细消息和原因的新错误。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../Error.html#Error(java.lang.Throwable)">Error</A></B>(<A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 根据指定的原因和 <tt>(cause==null ? null :cause.toString())</tt> 的详细消息来构造新的错误(通常包含 <tt>cause</tt> 的类和详细消息)。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../Exception.html#Exception(java.lang.String, java.lang.Throwable)">Exception</A></B>(<A HREF="../String.html" title="java.lang 中的类">String</A> message, <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 构造带指定详细消息和原因的新异常。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../Exception.html#Exception(java.lang.Throwable)">Exception</A></B>(<A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 根据指定的原因和 <tt>(cause==null ? null : cause.toString())</tt> 的详细消息构造新异常(它通常包含 <tt>cause</tt> 的类和详细消息)。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../ExceptionInInitializerError.html#ExceptionInInitializerError(java.lang.Throwable)">ExceptionInInitializerError</A></B>(<A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> thrown)</CODE><BR> 保存对抛出的 <code>Throwable</code> 对象的引用,以便以后通过 <A HREF="../ExceptionInInitializerError.html#getException()"><CODE>ExceptionInInitializerError.getException()</CODE></A> 方法对其进行检索,通过这种方式构造一个新的 <code>ExceptionInInitializerError</code> 类。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../IllegalArgumentException.html#IllegalArgumentException(java.lang.String, java.lang.Throwable)">IllegalArgumentException</A></B>(<A HREF="../String.html" title="java.lang 中的类">String</A> message, <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 根据指定的详细消息和原因构造一个新异常。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../IllegalArgumentException.html#IllegalArgumentException(java.lang.Throwable)">IllegalArgumentException</A></B>(<A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 根据指定的原因和 <tt>(cause==null ? null :cause.toString())</tt> 的详细消息构造一个新异常(它通常包含 <tt>cause</tt> 的类和详细消息)。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../IllegalStateException.html#IllegalStateException(java.lang.String, java.lang.Throwable)">IllegalStateException</A></B>(<A HREF="../String.html" title="java.lang 中的类">String</A> message, <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 根据指定的详细消息和原因构造一个新异常。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../IllegalStateException.html#IllegalStateException(java.lang.Throwable)">IllegalStateException</A></B>(<A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 根据指定的原因和 <tt>(cause==null ? null :cause.toString())</tt> 的详细消息构造一个新异常(它通常包含 <tt>cause</tt> 的类和详细消息)。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../RuntimeException.html#RuntimeException(java.lang.String, java.lang.Throwable)">RuntimeException</A></B>(<A HREF="../String.html" title="java.lang 中的类">String</A> message, <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 用指定的详细消息和原因构造一个新的运行时异常。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../RuntimeException.html#RuntimeException(java.lang.Throwable)">RuntimeException</A></B>(<A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 用指定的原因和详细消息 <tt>(cause==null ? null :cause.toString())</tt> 构造一个新的运行时异常(它通常包含类和 <tt>cause</tt> 的详细消息)。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../SecurityException.html#SecurityException(java.lang.String, java.lang.Throwable)">SecurityException</A></B>(<A HREF="../String.html" title="java.lang 中的类">String</A> message, <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 用指定详细消息和原因构造一个 <code>SecurityException</code>。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../SecurityException.html#SecurityException(java.lang.Throwable)">SecurityException</A></B>(<A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 用指定的原因和详细消息创建一个 <code>SecurityException</code>,详细消息是 <tt>(cause==null ? null :cause.toString())</tt>(它通常包含该类和 <tt>cause</tt> 的详细消息)。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../Throwable.html#Throwable(java.lang.String, java.lang.Throwable)">Throwable</A></B>(<A HREF="../String.html" title="java.lang 中的类">String</A> message, <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 构造一个带指定详细消息和 cause 的新 throwable。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../Throwable.html#Throwable(java.lang.Throwable)">Throwable</A></B>(<A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 构造一个带指定 cause 和 <tt>(cause==null ? null :cause.toString())</tt>(它通常包含类和 <tt>cause</tt> 的详细消息)的详细消息的新 throwable。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../TypeNotPresentException.html#TypeNotPresentException(java.lang.String, java.lang.Throwable)">TypeNotPresentException</A></B>(<A HREF="../String.html" title="java.lang 中的类">String</A> typeName, <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 为指定类型构造一个带指定原因的 <tt>TypeNotPresentException</tt>。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../UnsupportedOperationException.html#UnsupportedOperationException(java.lang.String, java.lang.Throwable)">UnsupportedOperationException</A></B>(<A HREF="../String.html" title="java.lang 中的类">String</A> message, <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 根据指定的详细消息和原因,构造一个新异常。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../UnsupportedOperationException.html#UnsupportedOperationException(java.lang.Throwable)">UnsupportedOperationException</A></B>(<A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 根据指定的原因和 <tt>(cause==null ? null :cause.toString())</tt>(它通常包含了 <tt>cause</tt> 的类和详细消息)的详细消息,构造一个新异常。</TD></TR></TABLE> <P><A NAME="java.lang.annotation"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><A HREF="../annotation/package-summary.html">java.lang.annotation</A> 中 <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> 的使用</FONT></TH></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TH ALIGN="left" COLSPAN="2"><A HREF="../annotation/package-summary.html">java.lang.annotation</A> 中 <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> 的子类</FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../annotation/AnnotationFormatError.html" title="java.lang.annotation 中的类">AnnotationFormatError</A></B></CODE><BR> 当注释分析器试图从类文件读取注释并确定注释出现异常时,抛出该错误。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../annotation/AnnotationTypeMismatchException.html" title="java.lang.annotation 中的类">AnnotationTypeMismatchException</A></B></CODE><BR> 若某个注释的类型在对该注释进行编译(或序列化)后发生了更改,而程序试图访问该注释的元素时,抛出此异常。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../annotation/IncompleteAnnotationException.html" title="java.lang.annotation 中的类">IncompleteAnnotationException</A></B></CODE><BR> 若某个注释在编译(或序列化)后将某个注释类型添加到其类型定义中,而程序试图该注释类型的元素时,抛出此异常。</TD></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TH ALIGN="left" COLSPAN="2">参数类型为 <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> 的 <A HREF="../annotation/package-summary.html">java.lang.annotation</A> 中的构造方法</FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../annotation/AnnotationFormatError.html#AnnotationFormatError(java.lang.String, java.lang.Throwable)">AnnotationFormatError</A></B>(<A HREF="../String.html" title="java.lang 中的类">String</A> message, <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 构造带指定详细消息和原因的新 <tt>AnnotationFormatError</tt>。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../annotation/AnnotationFormatError.html#AnnotationFormatError(java.lang.Throwable)">AnnotationFormatError</A></B>(<A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> cause)</CODE><BR> 构造带指定原因和详细消息的新 <tt>AnnotationFormatError</tt>,该消息为 (<tt>cause == null ? null :cause.toString()</tt>)(它通常包含 <tt>cause</tt> 的类和详细消息)。</TD></TR></TABLE> <P><A NAME="java.lang.instrument"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><A HREF="../instrument/package-summary.html">java.lang.instrument</A> 中 <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> 的使用</FONT></TH></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TH ALIGN="left" COLSPAN="2"><A HREF="../instrument/package-summary.html">java.lang.instrument</A> 中 <A HREF="../Throwable.html" title="java.lang 中的类">Throwable</A> 的子类</FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?