1 22 package org.jboss.mx.util; 23 24 25 26 import javax.management.NotCompliantMBeanException ; 27 import java.io.PrintStream ; 28 import java.io.PrintWriter ; 29 31 32 33 42 43 public class JBossNotCompliantMBeanException 44 extends NotCompliantMBeanException 45 { 47 48 private final Throwable t; 49 50 public JBossNotCompliantMBeanException() 51 { 52 super(); 53 t = null; 54 } 55 56 public JBossNotCompliantMBeanException(String message) 57 { 58 super(message); 59 t = null; 60 } 61 62 public JBossNotCompliantMBeanException(Throwable t) 63 { 64 super(); 65 this.t = t; 66 } 67 68 public JBossNotCompliantMBeanException(String message, Throwable t) 69 { 70 super(message); 71 this.t = t; 72 } 73 74 76 public Throwable getNested() 77 { 78 return t; 79 } 80 81 public Throwable getCause() 82 { 83 return t; 84 } 85 86 91 public String getMessage() 92 { 93 return super.getMessage(); 95 } 96 97 103 public void printStackTrace(final PrintStream stream) 104 { 105 { 107 super.printStackTrace(stream); 108 } 109 } 111 112 118 public void printStackTrace(final PrintWriter writer) 119 { 120 { 122 super.printStackTrace(writer); 123 } 124 } 126 127 131 public void printStackTrace() 132 { 133 printStackTrace(System.err); 134 } 135 136 } 138 | Popular Tags |