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