Exception: RSS::UnknownTagError

Inherits:
InvalidRSSError show all
Defined in:
lib/rss/rss.rb

Overview

RSS does not allow for free-form tag names, so if an RSS feed contains a tag that we don’t know about, an UnknownTagError is raised.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag, uri) ⇒ UnknownTagError

Returns a new instance of UnknownTagError.


129
130
131
132
# File 'lib/rss/rss.rb', line 129

def initialize(tag, uri)
  @tag, @uri = tag, uri
  super("tag <#{tag}> is unknown in namespace specified by uri <#{uri}>")
end

Instance Attribute Details

#tagObject (readonly)

Returns the value of attribute tag.


128
129
130
# File 'lib/rss/rss.rb', line 128

def tag
  @tag
end

#uriObject (readonly)

Returns the value of attribute uri.


128
129
130
# File 'lib/rss/rss.rb', line 128

def uri
  @uri
end