summaryrefslogtreecommitdiff
path: root/lib/rss/rss.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rss/rss.rb')
-rw-r--r--lib/rss/rss.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb
index 3ef5db1866..d24a387fe1 100644
--- a/lib/rss/rss.rb
+++ b/lib/rss/rss.rb
@@ -86,13 +86,15 @@ module RSS
end
end
- class NotExceptedTagError < InvalidRSSError
+ class NotExpectedTagError < InvalidRSSError
attr_reader :tag, :parent
def initialize(tag, parent)
@tag, @parent = tag, parent
super("tag <#{tag}> is not expected in tag <#{parent}>")
end
end
+ # For backward compatibility :X
+ NotExceptedTagError = NotExpectedTagError
class NotAvailableValueError < InvalidRSSError
attr_reader :tag, :value, :attribute
@@ -868,7 +870,7 @@ EOC
end
if !tags.nil? and !tags.empty?
- raise NotExceptedTagError.new(tag, tag_name)
+ raise NotExpectedTagError.new(tag, tag_name)
end
end