/**
  * Throws an Exception when number cannot be formatted
  * @param IntlNumberFormatter $intlFormatter
  * @param int|string|float $number
  * @throws Exception\RuntimeException
  */
 protected function throwNumberFormatterException(IntlNumberFormatter $intlFormatter, $number)
 {
     $error_code = $intlFormatter->getErrorCode();
     if (is_scalar($number)) {
         $val = (string) $number;
     } else {
         $val = 'type: ' . gettype($number);
     }
     throw new Exception\RuntimeException(__METHOD__ . " Cannot format value '{$val}', Intl/NumberFormatter error code: {$error_code}.");
 }
 /**
  * @throws Exception\ExtensionNotLoadedException if ext/intl is not present
  */
 public function __construct(array $params = array())
 {
     parent::__construct($params);
 }