Exception: Nlg::Extractors::EmptyPageError
- Inherits:
-
StandardError
- Object
- StandardError
- Nlg::Extractors::EmptyPageError
- Defined in:
- lib/bookshark/extractors/nlg/base.rb
Overview
Raised when a page is considered empty.
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ EmptyPageError
constructor
A new instance of EmptyPageError.
Constructor Details
#initialize(url) ⇒ EmptyPageError
Returns a new instance of EmptyPageError.
87 88 89 90 91 92 |
# File 'lib/bookshark/extractors/nlg/base.rb', line 87 def initialize(url) @url = url msg = "Page: #{url} is not valid xml so it is considered EMPTY." super(msg) end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
85 86 87 |
# File 'lib/bookshark/extractors/nlg/base.rb', line 85 def url @url end |