use of org.apache.headers.doc_lit.PingMeFault in project cxf by apache.
the class BaseHeaderTesterDocLitImpl method pingMe.
public void pingMe(String msgType) throws PingMeFault {
getLogger().debug("Server: in pingMe:" + msgType);
if ("USER".equals(msgType)) {
FaultDetailT detail = new FaultDetailT();
detail.setMajor((short) 1);
detail.setMinor((short) 2);
throw new PingMeFault("USER FAULT TEST", detail);
} else if ("SYSTEM".equals(msgType)) {
throw new Fault(new Message(HeaderTesterUtil.EX_STRING, (ResourceBundle) null, new Object[] { "FAULT TEST" }));
} else if ("RUNTIME".equals(msgType)) {
throw new IllegalArgumentException(HeaderTesterUtil.EX_STRING);
}
}
Aggregations