1 26 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base; 27 28 37 public class DeployerExceptionWrapper 38 extends Exception 39 { 40 41 protected Exception source; 48 49 protected String message; 50 56 62 68 74 public 75 DeployerExceptionWrapper(Exception e, 76 String message) 77 { 78 super(message); 79 source=e; 80 this.message=message; 81 } 82 83 87 public Exception 88 getInitialException() 89 { 90 return source; 91 } 92 93 public void 94 printStackTrace() 95 { 96 super.printStackTrace(); 97 if(source!=null) 98 { 99 System.err.println("Due to:\n"); 100 source.printStackTrace(); 101 } 102 103 } 104 105 } 106 | Popular Tags |