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