use of org.apache.cxf.hello_world_corba.types.FaultDetail in project cxf by apache.
the class BaseGreeterImpl method pingMe.
public void pingMe(String faultType) throws PingMeFault {
if ("USER".equals(faultType)) {
FaultDetail detail = new FaultDetail();
detail.setMajor((short) 1);
detail.setMinor((short) 2);
throw new PingMeFault("USER FAULT TEST", detail);
} else if ("SYSTEM".equals(faultType)) {
throw new Fault(new Message(EX_STRING, (ResourceBundle) null, new Object[] { "FAULT TEST" }));
} else {
throw new IllegalArgumentException(EX_STRING);
}
}
Aggregations