1 18 19 package org.osgi.framework; 20 21 36 37 public class BundleException extends Exception { 38 static final long serialVersionUID = 3571095144220455665L; 39 42 private final Throwable cause; 43 44 50 public BundleException(String msg, Throwable cause) { 51 super(msg); 52 this.cause = cause; 53 } 54 55 61 public BundleException(String msg) { 62 super(msg); 63 this.cause = null; 64 } 65 66 77 public Throwable getNestedException() { 78 return cause; 79 } 80 81 89 public Throwable getCause() { 90 return cause; 91 } 92 93 103 public Throwable initCause(Throwable cause) { 104 throw new IllegalStateException (); 105 } 106 } 107 | Popular Tags |