Skip to content

v1.1.0

Compare
Choose a tag to compare
@peter-gribanov peter-gribanov released this 27 Jul 08:39
· 1 commit to master since this release

Changes

  • Create detector for detect errors in response.

    use AnimeDb\Bundle\MyAnimeListBrowserBundle\Exception\BannedException;
    use AnimeDb\Bundle\MyAnimeListBrowserBundle\Exception\NotFoundException;
    
    try {
        $content = $browser->get('/anime/1');
    } catch (BannedException $e) {
        // you are banned
    } catch (NotFoundException $e) {
        // page not found
    } catch (\Exception $e) {
        // other exceptions
    }