免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1903 | 回复: 3
打印 上一主题 下一主题

请问这个 class 的源文件在哪里查看? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-06 10:41 |只看该作者 |倒序浏览
Exception.java 只能看到一个空的定义。
请问具体的源文件在哪里查看?

这个也不是 Interface,奇怪。

/*
* @(#)Exception.java        1.29 01/12/03
*
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/

package java.lang;

/**
* The class <code>;Exception</code>; and its subclasses are a form of
* <code>;Throwable</code>; that indicates conditions that a reasonable
* application might want to catch.
*
* @author  Frank Yellin
* @version 1.29, 12/03/01
* @see     java.lang.Error
* @since   JDK1.0
*/
public class Exception extends Throwable {
    static final long serialVersionUID = -3387516993124229948L;

    /**
     * Constructs a new exception with <code>;null</code>; as its detail message.
     * The cause is not initialized, and may subsequently be initialized by a
     * call to {@link #initCause}.
     */
    public Exception() {
        super();
    }

    /**
     * Constructs a new exception with the specified detail message.  The
     * cause is not initialized, and may subsequently be initialized by
     * a call to {@link #initCause}.
     *
     * @param   message   the detail message. The detail message is saved for
     *          later retrieval by the {@link #getMessage()} method.
     */
    public Exception(String message) {
        super(message);
    }

    /**
     * Constructs a new exception with the specified detail message and
     * cause.  <p>;Note that the detail message associated with
     * <code>;cause</code>; is <i>;not</i>; automatically incorporated in
     * this exception's detail message.
     *
     * @param  message the detail message (which is saved for later retrieval
     *         by the {@link #getMessage()} method).
     * @param  cause the cause (which is saved for later retrieval by the
     *         {@link #getCause()} method).  (A <tt>;null</tt>; value is
     *         permitted, and indicates that the cause is nonexistent or
     *         unknown.)
     * @since  1.4
     */
    public Exception(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     * Constructs a new exception with the specified cause and a detail
     * message of <tt>;(cause==null ? null : cause.toString())</tt>; (which
     * typically contains the class and detail message of <tt>;cause</tt>.
     * This constructor is useful for exceptions that are little more than
     * wrappers for other throwables (for example, {@link
     * java.security.PrivilegedActionException}).
     *
     * @param  cause the cause (which is saved for later retrieval by the
     *         {@link #getCause()} method).  (A <tt>;null</tt>; value is
     *         permitted, and indicates that the cause is nonexistent or
     *         unknown.)
     * @since  1.4
     */
    public Exception(Throwable cause) {
        super(cause);
    }
}

论坛徽章:
0
2 [报告]
发表于 2004-04-06 15:29 |只看该作者

请问这个 class 的源文件在哪里查看?

It extends from Throwable. Read class "Throwable".

论坛徽章:
0
3 [报告]
发表于 2004-04-06 17:07 |只看该作者

请问这个 class 的源文件在哪里查看?

是“Throwable”的子类,请读“Throwable”class

论坛徽章:
0
4 [报告]
发表于 2004-04-07 08:17 |只看该作者

请问这个 class 的源文件在哪里查看?

oh,Thanks
比较奇怪全是 super();
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP