View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.transport.service;
8   
9   import org.mule.config.i18n.MessageFactory;
10  
11  /**
12   * <code>TransportServiceNotFoundException</code> is thorown if no matching service
13   * endpoint descriptor is found for the connector protocol.
14   * 
15   */
16  
17  public class TransportServiceNotFoundException extends TransportFactoryException
18  {
19      /**
20       * Serial version
21       */
22      private static final long serialVersionUID = -8321406750213654479L;
23  
24      /**
25       * @param location the path of the service
26       */
27      public TransportServiceNotFoundException(String location)
28      {
29          super(MessageFactory.createStaticMessage(location));
30      }
31  
32      /**
33       * @param location the path of the service
34       * @param cause the exception that cause this exception to be thrown
35       */
36      public TransportServiceNotFoundException(String location, Throwable cause)
37      {
38          super(MessageFactory.createStaticMessage(location), cause);
39      }
40  }