1 10 11 package org.mule.umo.transformer; 12 13 import org.mule.config.i18n.Message; 14 import org.mule.umo.endpoint.EndpointException; 15 16 23 24 public class TransformerException extends EndpointException 25 { 26 29 private static final long serialVersionUID = 2943589828020763649L; 30 31 private transient UMOTransformer transformer; 32 33 36 public TransformerException(Message message, UMOTransformer transformer) 37 { 38 super(message); 39 this.transformer = transformer; 40 addInfo("Transformer", transformer.toString()); 41 } 42 43 47 public TransformerException(Message message, UMOTransformer transformer, Throwable cause) 48 { 49 super(message, cause); 50 this.transformer = transformer; 51 addInfo("Transformer", transformer.toString()); 52 } 53 54 public TransformerException(UMOTransformer transformer, Throwable cause) 55 { 56 super(cause); 57 this.transformer = transformer; 58 addInfo("Transformer", (transformer == null ? "null" : transformer.toString())); 59 } 60 61 65 public TransformerException(Message message, Throwable cause) 66 { 67 super(message, cause); 68 } 69 70 73 public TransformerException(Message message) 74 { 75 super(message); 76 } 77 78 public UMOTransformer getTransformer() 79 { 80 return transformer; 81 } 82 } 83 | Popular Tags |