paquettg / leaguewrap

League of Legend API wrapper
MIT License
68 stars 28 forks source link

How to Handle if League is 404? #96

Closed savisaar2 closed 8 years ago

savisaar2 commented 8 years ago

I am using $summoner = $node1->league(347341);

when i try to var_dump($summoner); Nothing Shows?

i looked on the api testing and it comes back as 404. however i am unable to catch it with Http404 can you please give me an example how to catch the error if the league cannot be retrieved?

Thanks Alex