1 10 11 package org.mule.umo.lifecycle; 12 13 import org.apache.commons.lang.ObjectUtils; 14 import org.mule.config.i18n.Message; 15 import org.mule.config.i18n.Messages; 16 import org.mule.umo.UMOException; 17 18 24 25 public class LifecycleException extends UMOException 26 { 27 30 private static final long serialVersionUID = 2909614055858287394L; 31 32 private transient Object component; 33 34 38 public LifecycleException(Message message, Object component) 39 { 40 super(message); 41 this.component = component; 42 } 43 44 49 public LifecycleException(Message message, Throwable cause, Object component) 50 { 51 super(message, cause); 52 this.component = component; 53 } 54 55 59 public LifecycleException(Throwable cause, Object component) 60 { 61 super(new Message(Messages.INITIALISATION_FAILURE_X, cause.getMessage()), cause); 62 this.component = component; 63 addInfo("Object", ObjectUtils.toString(component, "null")); 64 } 65 66 public Object getComponent() 67 { 68 return component; 69 } 70 71 } 72 | Popular Tags |