Skip to content

Commit

Permalink
add AlreadyPosted error subclass
Browse files Browse the repository at this point in the history
  • Loading branch information
korny committed Jul 31, 2013
1 parent b4e3e21 commit e11d2a2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* [Add `Twitter::Error::AlreadyPosted`]()

4.8.1
-----
* [Ignore case of profile image extension](https://github.com/sferik/twitter/commit/73760610e959ae868de23de3da661d237fbcb106)
Expand Down
10 changes: 10 additions & 0 deletions lib/twitter/error/already_posted.rb
Original file line number Diff line number Diff line change
@@ -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.