Remove custom messages
This commit is contained in:
@@ -6,11 +6,5 @@ namespace Pcm\GeocodeBundle\Exception;
|
||||
|
||||
class GeocodeException extends \RuntimeException
|
||||
{
|
||||
public function __construct(string $postcode, string $message)
|
||||
{
|
||||
$formattedMessage = sprintf("Failed to geocode a postcode \"%s\": %s", $postcode, $message);
|
||||
|
||||
parent::__construct($formattedMessage);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,11 +6,5 @@ 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user