Commit Graph

11 Commits

Author SHA1 Message Date
Haacked 8a7e5efa81 Use base type for argument 2015-08-04 21:20:15 -07:00
Haacked d8f50292e3 Stop manufacturing Response objects just to create an exception 2015-01-04 19:15:38 -08:00
Haacked be9f446df4 Move Response to its own file and Internal namespace
A class named "Response" could conflict with a lot of things.
2015-01-04 19:03:25 -08:00
Haacked 4c8bab20eb IApiResponse no longer inherits IResponse 2015-01-04 18:58:53 -08:00
Brendan Forster 3be89e7c01 document a bunch of the Exceptions namespace 2015-01-03 09:30:05 -08:00
Haacked dae6cb2ca6 Implement RepositoryExistsException
This exception is thrown when we try to create a repository but it
already exists on the server.
2014-02-18 21:03:29 -08:00
Haacked c87944c884 Add default messages for custom exceptions
Right now, our exception messages come from the API response in most
cases. But if for any reason there isn't one, we supply a default. I
realized these messages might make it to people's logs so it might be
nice to spend time later making them even more useful.
2013-10-18 11:08:56 -07:00
Haacked a1887837be Implement 403 exception handling
This implements exception handling for the various 403 cases based off
of the Octokit.rb implementation.
https://github.com/octokit/octokit.rb/blob/master/lib/octokit/error.rb

Fixes #85
2013-10-17 22:22:56 -07:00
Haacked e98e46c728 Make ApiError is never null 2013-10-10 22:11:49 -07:00
half-ogre 6f3fa81789 move internal stuff to .Internal namespace 2013-10-08 15:14:06 -07:00
Haacked a39a80cc88 Add exception handling for non-OK status codes 2013-10-02 16:17:36 -07:00