Permalink
Browse files

add AlreadyPosted error subclass

  • Loading branch information...
1 parent b4e3e21 commit e11d2a27dd0dfbbe16c812a81b9c2ab2852a7790 @korny korny committed Jul 31, 2013
Showing with 12 additions and 0 deletions.
  1. +2 −0 CHANGELOG.md
  2. +10 −0 lib/twitter/error/already_posted.rb
View
@@ -1,3 +1,5 @@
+* [Add `Twitter::Error::AlreadyPosted`](…)
+
4.8.1
-----
* [Ignore case of profile image extension](https://github.com/sferik/twitter/commit/73760610e959ae868de23de3da661d237fbcb106)
@@ -0,0 +1,10 @@
+require 'twitter/error/forbidden'
+
+module Twitter
+ class Error
+ # Raised when a Tweet has already been posted
+ class AlreadyPosted < Twitter::Error
+ MESSAGE = "Status is a duplicate"
+ end
+ end
+end

0 comments on commit e11d2a2

Please sign in to comment.