1313use ProgrammatorDev \OpenWeatherMap \Exception \TooManyRequestsException ;
1414use ProgrammatorDev \OpenWeatherMap \Exception \UnauthorizedException ;
1515use ProgrammatorDev \OpenWeatherMap \Exception \UnexpectedErrorException ;
16+ use ProgrammatorDev \OpenWeatherMap \Exception \ValidationException ;
1617use ProgrammatorDev \OpenWeatherMap \Validator \CoordinateValidatorTrait ;
1718use ProgrammatorDev \OpenWeatherMap \Validator \LessThanValidatorTrait ;
1819use Psr \Cache \InvalidArgumentException ;
@@ -38,6 +39,7 @@ class OneCallEndpoint extends AbstractEndpoint
3839 * @throws UnauthorizedException
3940 * @throws UnexpectedErrorException
4041 * @throws InvalidArgumentException
42+ * @throws ValidationException
4143 */
4244 public function getWeather (float $ latitude , float $ longitude ): OneCall
4345 {
@@ -65,6 +67,7 @@ public function getWeather(float $latitude, float $longitude): OneCall
6567 * @throws UnauthorizedException
6668 * @throws UnexpectedErrorException
6769 * @throws InvalidArgumentException
70+ * @throws ValidationException
6871 */
6972 public function getHistoryMoment (float $ latitude , float $ longitude , \DateTimeInterface $ dateTime ): HistoryMoment
7073 {
@@ -94,6 +97,7 @@ public function getHistoryMoment(float $latitude, float $longitude, \DateTimeInt
9497 * @throws UnauthorizedException
9598 * @throws UnexpectedErrorException
9699 * @throws InvalidArgumentException
100+ * @throws ValidationException
97101 */
98102 public function getHistoryDaySummary (float $ latitude , float $ longitude , \DateTimeInterface $ dateTime ): HistoryDaySummary
99103 {
0 commit comments