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