123456789_123456789_123456789_123456789_123456789_

Exception: RSS::NotExpectedTagError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, InvalidRSSError, Error, StandardError
Instance Chain:
self, InvalidRSSError, Error, StandardError
Inherits: RSS::InvalidRSSError
Defined in: lib/rss/rss.rb

Overview

Raised when an unexpected tag is encountered.

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(tag, uri, parent) ⇒ NotExpectedTagError

[ GitHub ]

  
# File 'lib/rss/rss.rb', line 141

def initialize(tag, uri, parent)
  @tag, @uri, @parent = tag, uri, parent
  super("tag <{#{uri}}#{tag}> is not expected in tag <#{parent}>")
end

Instance Attribute Details

#parent (readonly)

[ GitHub ]

  
# File 'lib/rss/rss.rb', line 140

attr_reader :tag, :uri, :parent

#tag (readonly)

[ GitHub ]

  
# File 'lib/rss/rss.rb', line 140

attr_reader :tag, :uri, :parent

#uri (readonly)

[ GitHub ]

  
# File 'lib/rss/rss.rb', line 140

attr_reader :tag, :uri, :parent