Exception: Atom::LoadError
- Inherits:
-
StandardError
- Object
- StandardError
- Atom::LoadError
- Defined in:
- lib/atom/xml/parser.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ LoadError
constructor
A new instance of LoadError.
- #to_s ⇒ Object
Constructor Details
#initialize(response) ⇒ LoadError
Returns a new instance of LoadError.
48 49 50 |
# File 'lib/atom/xml/parser.rb', line 48 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
47 48 49 |
# File 'lib/atom/xml/parser.rb', line 47 def response @response end |
Instance Method Details
#to_s ⇒ Object
52 53 54 |
# File 'lib/atom/xml/parser.rb', line 52 def to_s "Atom::LoadError: #{response.code} #{response.message}" end |