dolejska-daniel / riot-api

Riot League of Legends & DataDragon API wrappers for PHP7 and PHP8.
GNU General Public License v3.0
112 stars 25 forks source link

Add Response codes to Exceptions #23

Closed chypriote closed 6 years ago

chypriote commented 6 years ago

Hello, I recently started using this project, and the fact that all exceptions raised by the API return the same error code (0) has been bothering me.

This small changes make it so that the HttpException code is used as the raised exception code, this way it is possible to use the error code to handle exceptions.