Replace Error Code with Exception

refactorgram

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

image/svg+xml

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