for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BenTools\Currency\Model;
class ExchangeRateNotFoundException extends \RuntimeException
{
/**
* @inheritDoc
*/
public function __construct(CurrencyInterface $sourceCurrency, CurrencyInterface $targetCurrency, string $message = null)
$message = $message ?? sprintf('Unable to find exchange rate for %s to %s.', $sourceCurrency->getCode(), $targetCurrency->getName());
parent::__construct($message);
}