Skip to content

Commit

Permalink
Adding dispatcher error handling to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bleigh committed Mar 20, 2009
1 parent ccb7559 commit 7332d1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.markdown
Expand Up @@ -59,6 +59,8 @@ The `User` class will have a `twitter` method that provides a generic dispatcher
user.twitter.post('/statuses/update.json', 'status' => 'This is my status.')
# => {"user"=>{"login" => "mbleigh" ... }, "text"=>"This is my status.", "id"=>1234567890 ... }

If Twitter returns something other than a 200 response code, TwitterAuth will catch it and try to raise a salient error message. The exception class is `TwitterAuth::Dispatcher::Error` if you're in the mood to catch it.

This area of the code is still a little raw, but hopefully will evolve to be a little more user-friendly as TwitterAuth matures. In the meantime, it's a perfectly workable foundation library, and the fact that it works the same with OAuth and HTTP Basic makes it all the better!

Customizing TwitterAuth
Expand Down

0 comments on commit 7332d1a

Please sign in to comment.