Exception: RSS::UnknownTagError

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

Overview

Raised when an unknown tag is found.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag, uri) ⇒ UnknownTagError

Returns a new instance of UnknownTagError.



111
112
113
114
# File 'lib/rss/rss.rb', line 111

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



110
111
112
# File 'lib/rss/rss.rb', line 110

def tag
  @tag
end

#uriObject (readonly)

Returns the value of attribute uri



110
111
112
# File 'lib/rss/rss.rb', line 110

def uri
  @uri
end