1   /*
2    * $Id: TestXFireComponent.java 7963 2007-08-21 08:53:15Z 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.providers.soap.xfire.testmodels;
12  
13  
14  public class TestXFireComponent
15  {
16      public String testXFireException(String data) throws XFireEnabledFaultMessage
17      {
18          CustomFault fault = new CustomFault();
19          fault.setDescription("Custom Exception Message");
20          throw new XFireEnabledFaultMessage("XFire Exception Message", fault);
21      }
22  
23      public String testNonXFireException(String data) throws UnsupportedOperationException
24      {
25          throw new UnsupportedOperationException("Non-XFire Enabled Exception");
26      }
27  }