src/RunOpenCode/ExchangeRate/LoggableManager.php
public function has($sourceName, $currencyCode, \DateTime $date = null, $rateType = RateType::MEDIAN)
    {
        try {
            return $this->manager->has($sourceName, $currencyCode, $date, $rateType);
        } catch (\Exception $e) {
            $this->logger->error('Unable to determine if rate for {currency_code} of type {rate_type} from source {source} on {date} exists.', [
                'currency_code' => $currencyCode,
                'rate_type' => $rateType,
                'source' => $sourceName,
                'date' => (null === $date) ? date('Y-m-d') : $date->format('Y-m-d'),
                'exception' => $e,
            ]);
            throw $e;
        }
    }
public function has($sourceName, $currencyCode, \DateTime $date = null, $rateType = RateType::MEDIAN)
    {
        try {
            return $this->manager->has($sourceName, $currencyCode, $date, $rateType);
        } catch (\Exception $e) {
            $this->logger->error('Unable to determine if rate for {currency_code} of type {rate_type} from source {source} on {date} exists.', [
                'currency_code' => $currencyCode,
                'rate_type' => $rateType,
                'source' => $sourceName,
                'date' => (null === $date) ? date('Y-m-d') : $date->format('Y-m-d'),
                'exception' => $e,
            ]);
            throw $e;
        }
    }
{@inheritdoc}