15 years ago
Placement for FaultInfo
Hey I'm only starting working with WADL and am grad. So I was playing around with WADL app to output client error message using FaultInfo e.g.
But according to new WADL specification, the fault element has been removed.
So what way would I go forward, use setStatuses?
FaultInfo faultInfo = new FaultInfo(Status.CLIENT_ERROR_BAD_REQUEST);
faultInfo.setIdentifier("Address pattern could not be resolved");
faultInfo.setMediaType(MediaType.TEXT_HTML);
info.getResponse().getFaults().add(faultInfo);
But according to new WADL specification, the fault element has been removed.
So what way would I go forward, use setStatuses?