1 11 12 package org.jivesoftware.messenger; 13 14 import java.io.PrintStream ; 15 import java.io.PrintWriter ; 16 17 public class SessionNotFoundException extends Exception { 18 private Throwable nestedThrowable = null; 19 20 public SessionNotFoundException() { 21 super(); 22 } 23 24 public SessionNotFoundException(String msg) { 25 super(msg); 26 } 27 28 public SessionNotFoundException(Throwable nestedThrowable) { 29 this.nestedThrowable = nestedThrowable; 30 } 31 32 public SessionNotFoundException(String msg, Throwable nestedThrowable) { 33 super(msg); 34 this.nestedThrowable = nestedThrowable; 35 } 36 37 public void printStackTrace() { 38 super.printStackTrace(); 39 if (nestedThrowable != null) { 40 nestedThrowable.printStackTrace(); 41 } 42 } 43 44 public void printStackTrace(PrintStream ps) { 45 super.printStackTrace(ps); 46 if (nestedThrowable != null) { 47 nestedThrowable.printStackTrace(ps); 48 } 49 } 50 51 public void printStackTrace(PrintWriter pw) { 52 super.printStackTrace(pw); 53 if (nestedThrowable != null) { 54 nestedThrowable.printStackTrace(pw); 55 } 56 } 57 } 58 | Popular Tags |