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