Repository navigation
v2.1.0
Changes
-
Created detector for detect errors in the response [#11].
use AnimeDb\Bundle\AniDbBrowserBundle\Exception\BannedException; use AnimeDb\Bundle\AniDbBrowserBundle\Exception\NotFoundException; try { $content = $this->get('anime_db.ani_db.browser')->get('anime', ['aid' => 1]); } catch (BannedException $e) { // you are banned } catch (NotFoundException $e) { // anime not found } catch (\Exception $e) { // other exceptions }