You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Causes: ClientException : HTTP/1.1 404 Bark danych / No data available returned for...
Example 3
publicfunctiontestFromDayBeforeInvalid()
{
$inTwoMonths = (new \DateTimeImmutable())->add(new \DateInterval('P2M'));
self::expectException(RateNotFoundException::class);
self::expectExceptionMessage("Gold rate from day before {$inTwoMonths->format('Y-m-d')} has not been found");
$goldRates = GoldRatesService::create();
$goldRates->fromDayBefore($inTwoMonths);
}
Causes: ClientException : HTTP/1.1 400 B��dny zakres dat / Invalid date range returned for ...
Todo
Move exceptions to higher layer
Handle caching of invalid requests (?)
Tests for average rates
Tests for trading rates
Tests for gold rates
The text was updated successfully, but these errors were encountered:
Currently invalid dates are thrown on the transport level.
Example 1
Causes:
ClientException : HTTP/1.1 400 B��dny zakres dat / Invalid date range returned for...
Example 2
Causes:
ClientException : HTTP/1.1 404 Bark danych / No data available returned for...
Example 3
Causes:
ClientException : HTTP/1.1 400 B��dny zakres dat / Invalid date range returned for ...
Todo
The text was updated successfully, but these errors were encountered: