1 18 19 package org.osgi.service.component; 20 21 26 public class ComponentException extends RuntimeException { 27 static final long serialVersionUID = -7438212656298726924L; 28 31 private final Throwable cause; 32 33 39 public ComponentException(String message, Throwable cause) { 40 super(message); 41 this.cause = cause; 42 } 43 44 49 public ComponentException(String message) { 50 super(message); 51 this.cause = null; 52 } 53 54 59 public ComponentException(Throwable cause) { 60 super(); 61 this.cause = cause; 62 } 63 64 71 public Throwable getCause() { 72 return cause; 73 } 74 75 84 public Throwable initCause(Throwable cause) { 85 throw new IllegalStateException (); 86 } 87 } 88 | Popular Tags |