用异常替换错误代码

refactorgram

if (data)
  return new ShippingRules(data);
else
  return -23;

image/svg+xml

if (data)
  return new ShippingRules(data);
else
  throw new OrderProcessingError(-23);