Skip to content

v1.1.0

Latest
Compare
Choose a tag to compare
@peter-gribanov peter-gribanov released this 01 Aug 09:16

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
}