Add exceptions

This commit is contained in:
brabli
2024-08-05 13:06:42 +01:00
parent e4222229c4
commit fcda1e931c
3 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?php
declare(strict_types=1);
namespace Pcm\GeocodeBundle\Exception;
class NoResultsFoundException extends GeocodeException
{
private const string MESSAGE = "No results found.";
public function __construct(string $postcode)
{
parent::__construct($postcode, self::MESSAGE);
}
}