Coverage Report - org.mule.umo.transformer.TransformerException
 
Classes in this File Line Coverage Branch Coverage Complexity
TransformerException
0%
0/17
0%
0/1
1
 
 1  
 /*
 2  
  * $Id: TransformerException.java 7976 2007-08-21 14:26:13Z dirk.olmes $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.umo.transformer;
 12  
 
 13  
 import org.mule.config.i18n.Message;
 14  
 import org.mule.umo.endpoint.EndpointException;
 15  
 
 16  
 /**
 17  
  * <code>TransformerException</code> is a simple exception that is thrown by
 18  
  * transformers.
 19  
  * 
 20  
  * @author <a href="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
 21  
  * @version $Revision: 7976 $
 22  
  */
 23  
 
 24  
 public class TransformerException extends EndpointException
 25  
 {
 26  
     /**
 27  
      * Serial version
 28  
      */
 29  
     private static final long serialVersionUID = 2943589828020763649L;
 30  
 
 31  
     private transient UMOTransformer transformer;
 32  
 
 33  
     /**
 34  
      * @param message the exception message
 35  
      */
 36  
     public TransformerException(Message message, UMOTransformer transformer)
 37  
     {
 38  0
         super(message);
 39  0
         this.transformer = transformer;
 40  0
         addInfo("Transformer", transformer.toString());
 41  0
     }
 42  
 
 43  
     /**
 44  
      * @param message the exception message
 45  
      * @param cause the exception that cause this exception to be thrown
 46  
      */
 47  
     public TransformerException(Message message, UMOTransformer transformer, Throwable cause)
 48  
     {
 49  0
         super(message, cause);
 50  0
         this.transformer = transformer;
 51  0
         addInfo("Transformer", transformer.toString());
 52  0
     }
 53  
 
 54  
     public TransformerException(UMOTransformer transformer, Throwable cause)
 55  
     {
 56  0
         super(cause);
 57  0
         this.transformer = transformer;
 58  0
         addInfo("Transformer", (transformer == null ? "null" : transformer.toString()));
 59  0
     }
 60  
 
 61  
     /**
 62  
      * @param message the exception message
 63  
      * @param cause the exception that cause this exception to be thrown
 64  
      */
 65  
     public TransformerException(Message message, Throwable cause)
 66  
     {
 67  0
         super(message, cause);
 68  0
     }
 69  
 
 70  
     /**
 71  
      * @param message the exception message
 72  
      */
 73  
     public TransformerException(Message message)
 74  
     {
 75  0
         super(message);
 76  0
     }
 77  
 
 78  
     public UMOTransformer getTransformer()
 79  
     {
 80  0
         return transformer;
 81  
     }
 82  
 }