ForumNewsNotFoundException.java
上传用户:yuyunping
上传日期:2013-03-21
资源大小:1844k
文件大小:1k
源码类别:

Java书籍

开发平台:

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 ForumNewsNotFoundException extends Exception
  13. {
  14. private Throwable testThrowable=null;
  15. public ForumNewsNotFoundException()
  16. {
  17. super();
  18. }
  19. public ForumNewsNotFoundException(String msg)
  20. {
  21. super(msg);
  22. }
  23. public ForumNewsNotFoundException(Throwable testThrowable)
  24. {
  25. this.testThrowable=testThrowable;
  26. }
  27. public ForumNewsNotFoundException(String msg ,Throwable testThrowable){
  28. super(msg);
  29. this.testThrowable=testThrowable;
  30. }
  31. public void printStackTrace(){
  32. super.printStackTrace();
  33. if(testThrowable!=null){
  34. testThrowable.printStackTrace();
  35. }
  36. }
  37. public void printStackTrace(PrintStream ps){
  38. super.printStackTrace(ps);
  39. if(testThrowable!=null){
  40. testThrowable.printStackTrace(ps);
  41. }
  42. }
  43. public void printStackTrace(PrintWriter pw){
  44. super.printStackTrace(pw);
  45. if(testThrowable!=null){
  46. testThrowable.printStackTrace(pw);
  47. }
  48. }
  49. }