Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add AlreadyPosted error subclass

  • Loading branch information...
commit e11d2a27dd0dfbbe16c812a81b9c2ab2852a7790 1 parent b4e3e21
@korny korny authored
Showing with 12 additions and 0 deletions.
  1. +2 −0  CHANGELOG.md
  2. +10 −0 lib/twitter/error/already_posted.rb
View
2  CHANGELOG.md
@@ -1,3 +1,5 @@
+* [Add `Twitter::Error::AlreadyPosted`](…)
+
4.8.1
-----
* [Ignore case of profile image extension](https://github.com/sferik/twitter/commit/73760610e959ae868de23de3da661d237fbcb106)
View
10 lib/twitter/error/already_posted.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.