Coverage Report - org.mule.api.transport.UniqueIdNotSupportedException
 
Classes in this File Line Coverage Branch Coverage Complexity
UniqueIdNotSupportedException
0%
0/8
N/A
1
 
 1  
 /*
 2  
  * $Id: UniqueIdNotSupportedException.java 10489 2008-01-23 17:53:38Z dfeist $
 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.api.transport;
 12  
 
 13  
 import org.mule.api.MuleRuntimeException;
 14  
 import org.mule.config.i18n.CoreMessages;
 15  
 import org.mule.config.i18n.Message;
 16  
 
 17  
 /**
 18  
  * <code>UniqueIdNotSupportedException</code> is thrown by
 19  
  * MessageAdapter.getUniqueId() if the underlying message does not support or have
 20  
  * a unique identifier.
 21  
  */
 22  
 
 23  
 public class UniqueIdNotSupportedException extends MuleRuntimeException
 24  
 {
 25  
     /**
 26  
      * Serial version
 27  
      */
 28  
     private static final long serialVersionUID = -6719055482076081111L;
 29  
 
 30  
     public UniqueIdNotSupportedException(MessageAdapter adapter)
 31  
     {
 32  0
         super(CoreMessages.uniqueIdNotSupportedByAdapter(adapter.getClass().getName()));
 33  0
     }
 34  
 
 35  
     public UniqueIdNotSupportedException(MessageAdapter adapter, Message message)
 36  
     {
 37  0
         super(chainMessage(
 38  
             CoreMessages.uniqueIdNotSupportedByAdapter(adapter.getClass().getName()), message));
 39  0
     }
 40  
 
 41  
     public UniqueIdNotSupportedException(MessageAdapter adapter, Throwable cause)
 42  
     {
 43  0
         super(CoreMessages.uniqueIdNotSupportedByAdapter(adapter.getClass().getName()), cause);
 44  0
     }
 45  
 
 46  
     protected static Message chainMessage(Message m1, Message m2)
 47  
     {
 48  0
         m1.setNextMessage(m2);
 49  0
         return m1;
 50  
     }
 51  
 }