usernotfoundexception.java

来自「用jsp+sqlserver 开发的论坛:主要功能:发帖、 浏览帖子 和回帖;主」· Java 代码 · 共 50 行

JAVA
50
字号
package net.acai.forum;
/**
 * Title:        清清网络
 * Description:
 * Copyright:    Copyright (c) 2002
 * Company:      www.qingqing.com
 * @author:       qingqing
 * @version 1.0
 */
import java.io.PrintStream;
import java.io.PrintWriter;
public class UserNotFoundException extends Exception
{
	private Throwable testThrowable=null;
	public UserNotFoundException()
	{
		super();
	}
	public UserNotFoundException(String msg)
	{
		super(msg);
	}
	public UserNotFoundException(Throwable testThrowable)
	{
		this.testThrowable=testThrowable;
	}
	public UserNotFoundException(String msg ,Throwable testThrowable){
		super(msg);
		this.testThrowable=testThrowable;
	}
	public void printStackTrace(){
		super.printStackTrace();
		if(testThrowable!=null){
			testThrowable.printStackTrace();
		}
	}
	public void printStackTrace(PrintStream ps){
		super.printStackTrace(ps);
		if(testThrowable!=null){
			testThrowable.printStackTrace(ps);
		}
	}
	public void printStackTrace(PrintWriter pw){
		super.printStackTrace(pw);
		if(testThrowable!=null){
			testThrowable.printStackTrace(pw);
		}
	}
}

⌨️ 快捷键说明

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