Please use [library exceptions](https://github.com/KnpLabs/php-github-api/tree/master/lib/Github/Exception) here & below, it makes easier when you use it in other projects. Also add `@throws` notes to phpdoc.