Changes
- Catch exceptions
use AnimeDb\Bundle\SmotretAnimeBrowserBundle\Exception\ErrorException;
use AnimeDb\Bundle\SmotretAnimeBrowserBundle\Exception\NotFoundException;
try {
$content = $browser->get('series/1');
} catch (NotFoundException $e) {
// series not found
} catch (ErrorException $e) {
// invalid response
} catch (\Exception $e) {
// other exceptions
}