Exception: RSS::NotAvailableValueError

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

Overview

Raised when an incorrect value is used.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag, value, attribute = nil) ⇒ NotAvailableValueError

Returns a new instance of NotAvailableValueError.



135
136
137
138
139
140
141
# File 'lib/rss/rss.rb', line 135

def initialize(tag, value, attribute=nil)
  @tag, @value, @attribute = tag, value, attribute
  message = "value <#{value}> of "
  message << "attribute <#{attribute}> of " if attribute
  message << "tag <#{tag}> is not available."
  super(message)
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute



134
135
136
# File 'lib/rss/rss.rb', line 134

def attribute
  @attribute
end

#tagObject (readonly)

Returns the value of attribute tag



134
135
136
# File 'lib/rss/rss.rb', line 134

def tag
  @tag
end

#valueObject (readonly)

Returns the value of attribute value



134
135
136
# File 'lib/rss/rss.rb', line 134

def value
  @value
end