UserAlreadyExistException.java
上传用户:toby834
上传日期:2013-10-21
资源大小:2613k
文件大小:1k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. package net.acai.forum;
  2. /**
  3.  * Title:        清清网络
  4.  * Description:
  5.  * Copyright:    Copyright (c) 2002
  6.  * Company:      www.SuperSpace.com
  7.  * @author:       SuperSpace
  8.  * @version 1.0
  9.  */
  10. import java.io.PrintStream;
  11. import java.io.PrintWriter;
  12. public class UserAlreadyExistException extends Exception{
  13. private Throwable testThrowable=null;
  14. public UserAlreadyExistException(){
  15. super();
  16. }
  17. public UserAlreadyExistException(String msg){
  18. super(msg);
  19. }
  20. public UserAlreadyExistException(Throwable testThrowable){
  21. this.testThrowable=testThrowable;
  22. }
  23. public UserAlreadyExistException(String msg,Throwable testThrowable){
  24. super(msg);
  25. this.testThrowable=testThrowable;
  26. }
  27. public void printStackTrace(){
  28. super.printStackTrace();
  29. if(testThrowable!=null){
  30. testThrowable.printStackTrace();
  31. }
  32. }
  33. public void pirntStackTrace(PrintStream ps){
  34. super.printStackTrace();
  35. if(testThrowable!=null){
  36. testThrowable.printStackTrace(ps);
  37. }
  38. }
  39. public void printStackTrace(PrintWriter pw){
  40. super.printStackTrace();
  41. if(testThrowable!=null){
  42. testThrowable.printStackTrace(pw);
  43. }
  44. }
  45. }