1 26 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base; 27 28 36 public class FatalDeploymentException 37 extends DeployerExceptionWrapper 38 { 39 private DeployerContext deployer; 45 51 55 public 56 FatalDeploymentException(Exception e) 57 { 58 super(e, "Fatal error occur during the deployment :\n" + e.getMessage()); 59 } 60 61 65 public FatalDeploymentException(Exception e, String message) 66 { 67 super(e,"Fatal error occur during the deployment \n" + message + ":\n"); 68 } 69 70 74 public FatalDeploymentException(DeployerContext dc ,Exception e, String message) 75 { 76 super(e,"Fatal error occur during the deployment \n" + message + ":\n"); 77 this.deployer=dc; 78 } 79 85 public String getMessage() 91 { 92 if(deployer==null) 93 return super.getMessage(); 94 try{ 95 return super.getMessage()+"\n Check your CAD file it must contains a error\n" 96 +deployer.getStringifiedDeployerDescription(); 97 } 98 catch(Exception e){ 99 return super.getMessage()+"\n Check your CAD file it must contains a error"; 100 } 101 102 } 103 104 } 105 | Popular Tags |