1 28 29 package org.objectweb.util.misc.api; 30 31 38 public class ExceptionWrapper 39 extends java.lang.RuntimeException 40 implements ExceptionHolder 41 { 42 48 49 private Exception exception_ = null; 50 51 57 58 public ExceptionWrapper() { 59 this(null, ""); 60 } 61 62 67 public ExceptionWrapper(Exception exception) { 68 this(exception, ""); 69 } 70 71 78 public ExceptionWrapper(Exception exception, String message) { 79 super(message); 81 82 exception_ = exception; 84 } 85 86 92 98 103 public Exception getException() { 104 return exception_; 105 } 106 107 112 public void setException(Exception exception) { 113 exception_ = exception; 114 } 115 116 } 122 | Popular Tags |