public DefaultExceptionMapper() {
//should be cleaner, but this is fine for a demo:
InputStream is = ClassUtils.getResourceAsStream("restErrors.properties");
OrderPreservingProperties props = new OrderPreservingProperties();
props.load(is);
this.exceptionMappings = toRestErrors(props);
}
@Override
public Response toResponse(Throwable t) {