customerexception.java

来自「A J2EE & Jsp Example」· Java 代码 · 共 61 行

JAVA
61
字号
/* * * Copyright 2003 Sun Microsystems, Inc. All Rights Reserved. *  * This software is the proprietary information of Sun Microsystems, Inc.   * Use is subject to license terms. * The code in this example is offered under the license at:  * http://wireless.java.sun.com/berkeley_license.html * */package customerejb;public class CustomerException extends Exception {    /** Creates an empty CustomerException */    public CustomerException() {    }    /**     * Constructs an <code>CustomerException</code> with the specified detail message.     *     * @param msg the detail message.     */    public CustomerException(String msg) {        super(msg);    }    /**     * Constructs an <code>CustomerException</code> with the specified detail message     * and cause message.     *     * @param msg the detail message.     * @param causeMsg the cause of the exception     */    public CustomerException(String msg, String causeMsg) {        super(msg + causeMsg);    }    /**     * Constructs an <code>CustomerException</code> with the specified detail message     * and using the specified Throwable as the root cause for this Exception.     *     * @param msg the detail message.     * @param th the Throwable which caused this CustomerException to be created     */    public CustomerException(String msg, Throwable th) {        super(msg, th);    }    /**     * Constructs an <code>CustomerException</code> without a detail message and using     * the specified Throwable as the root cause for this Exception.     *     * @param th the Throwable which caused this CustomerException to be created     */    public CustomerException(Throwable th) {        super(th);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?