Managed error while generating URL previews by throwing an exception

This commit is contained in:
Alejandro Celaya
2016-08-18 11:16:56 +02:00
parent 277406c3b8
commit 60c68c914b
6 changed files with 48 additions and 4 deletions

View File

@@ -1,6 +1,8 @@
<?php
namespace Shlinkio\Shlink\Common\Service;
use Shlinkio\Shlink\Common\Exception\PreviewGenerationException;
interface PreviewGeneratorInterface
{
/**
@@ -8,6 +10,7 @@ interface PreviewGeneratorInterface
*
* @param string $url
* @return string
* @throws PreviewGenerationException
*/
public function generatePreview($url);
}