1
2
3
4
5
6
7
8
9
10
11 package org.mule.transport.cxf.testmodels;
12
13 public class TestXFireComponent
14 {
15 public String testXFireException(String data) throws CxfEnabledFaultMessage
16 {
17 CustomFault fault = new CustomFault();
18 fault.setDescription("Custom Exception Message");
19 throw new CxfEnabledFaultMessage("XFire Exception Message", fault);
20 }
21
22 public String testNonXFireException(String data)
23 {
24 throw new UnsupportedOperationException("Non-XFire Enabled Exception");
25 }
26 }