v1.1.0
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 }