1 18 package org.osgi.service.http; 19 20 27 public class NamespaceException extends Exception { 28 static final long serialVersionUID = 7235606031147877747L; 29 32 private final Throwable cause; 33 34 39 public NamespaceException(String message) { 40 super(message); 41 cause = null; 42 } 43 44 51 public NamespaceException(String message, Throwable cause) { 52 super(message); 53 this.cause = cause; 54 } 55 56 66 public Throwable getException() { 67 return cause; 68 } 69 70 78 public Throwable getCause() { 79 return cause; 80 } 81 82 92 public Throwable initCause(Throwable cause) { 93 throw new IllegalStateException (); 94 } 95 } 96 | Popular Tags |