1 18 19 package org.osgi.framework; 20 21 36 37 public class InvalidSyntaxException extends Exception { 38 static final long serialVersionUID = -4295194420816491875L; 39 42 private final String filter; 43 46 private final Throwable cause; 47 48 59 public InvalidSyntaxException(String msg, String filter) { 60 super(msg); 61 this.filter = filter; 62 this.cause = null; 63 } 64 65 78 public InvalidSyntaxException(String msg, String filter, Throwable cause) { 79 super(msg); 80 this.filter = filter; 81 this.cause = cause; 82 } 83 84 92 public String getFilter() { 93 return filter; 94 } 95 96 104 public Throwable getCause() { 105 return cause; 106 } 107 108 118 public Throwable initCause(Throwable cause) { 119 throw new IllegalStateException (); 120 } 121 } 122 | Popular Tags |