src/Exception/UnresolvableCurrencyPairException.php
public static function createFromCurrencies(Currency $baseCurrency, Currency $counterCurrency)
    {
        $message = sprintf(
            'Cannot resolve a currency pair for currencies: %s/%s',
            $baseCurrency->getCode(),
            $counterCurrency->getCode()
        );

        return new self($message);
    }
public static function createFromCurrencies(Currency $baseCurrency, Currency $counterCurrency)
    {
        $message = sprintf(
            'Cannot resolve a currency pair for currencies: %s/%s',
            $baseCurrency->getCode(),
            $counterCurrency->getCode()
        );

        return new self($message);
    }
public static function createFromCurrencies ( Currency $ baseCurrency , Currency $ counterCurrency ) { $ message = sprintf ( 'Cannot resolve a currency pair for currencies: %s/%s' , $ baseCurrency -> getCode ( ) , $ counterCurrency -> getCode ( ) ) ; return new self ( $ message ) ; }
Creates an exception from Currency objects.

@param Currency $baseCurrency
@param Currency $counterCurrency

@return UnresolvableCurrencyPairException
Creates an exception from Currency objects .