1 26 27 package org.objectweb.util.browser.core.naming; 28 29 30 31 import org.objectweb.util.browser.core.api.ExceptionHolder; 32 33 43 public class ExceptionWrapper extends java.lang.RuntimeException implements ExceptionHolder { 44 45 51 52 private Exception exception_ = null; 53 54 60 71 public ExceptionWrapper() { 72 this(null, null); 73 } 74 75 88 public ExceptionWrapper(String message) { 89 this(message, null); 90 } 91 92 105 public ExceptionWrapper(Exception exception) { 106 this(null, exception); 107 } 108 109 123 public ExceptionWrapper(String message, Exception exception) { 124 super(message); 126 setOWException(exception); 128 } 129 130 136 142 151 public java.lang.Exception getOWException() { 152 return exception_; 153 } 154 155 164 public void setOWException(java.lang.Exception exception) { 165 exception_ = exception; 166 } 167 168 } 169 | Popular Tags |