use of org.apache.cxf.hello_world_jms.types.ErrorCode in project cxf by apache.
the class TwoWayJMSImplBase method testRpcLitFault.
public TestRpcLitFaultResponse testRpcLitFault(String faultType) throws BadRecordLitFault, NoSuchCodeLitFault {
BadRecordLit badRecord = new BadRecordLit();
badRecord.setReason("BadRecordLitFault");
if (faultType.equals(BadRecordLitFault.class.getSimpleName())) {
throw new BadRecordLitFault("TestBadRecordLit", badRecord);
}
if (faultType.equals(NoSuchCodeLitFault.class.getSimpleName())) {
ErrorCode ec = new ErrorCode();
ec.setMajor((short) 1);
ec.setMinor((short) 1);
NoSuchCodeLit nscl = new NoSuchCodeLit();
nscl.setCode(ec);
throw new NoSuchCodeLitFault("TestNoSuchCodeLit", nscl);
}
return new TestRpcLitFaultResponse();
}
use of org.apache.cxf.hello_world_jms.types.ErrorCode in project cxf by apache.
the class TwoWayJMSImplBase method testRpcLitFault.
public TestRpcLitFaultResponse testRpcLitFault(String faultType) throws BadRecordLitFault, NoSuchCodeLitFault {
BadRecordLit badRecord = new BadRecordLit();
badRecord.setReason("BadRecordLitFault");
if (faultType.equals(BadRecordLitFault.class.getSimpleName())) {
throw new BadRecordLitFault("TestBadRecordLit", badRecord);
}
if (faultType.equals(NoSuchCodeLitFault.class.getSimpleName())) {
ErrorCode ec = new ErrorCode();
ec.setMajor((short) 1);
ec.setMinor((short) 1);
NoSuchCodeLit nscl = new NoSuchCodeLit();
nscl.setCode(ec);
throw new NoSuchCodeLitFault("TestNoSuchCodeLit", nscl);
}
return new TestRpcLitFaultResponse();
}
Aggregations