Exception: Panda::ConnectionError
- Inherits:
-
PandaError
- Object
- StandardError
- PandaError
- Panda::ConnectionError
- Defined in:
- lib/panda/video.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response, message = nil) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
- #to_s ⇒ Object
Constructor Details
#initialize(response, message = nil) ⇒ ConnectionError
Returns a new instance of ConnectionError.
121 122 123 124 |
# File 'lib/panda/video.rb', line 121 def initialize(response, = nil) @response = response = end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
119 120 121 |
# File 'lib/panda/video.rb', line 119 def response @response end |
Instance Method Details
#to_s ⇒ Object
126 127 128 |
# File 'lib/panda/video.rb', line 126 def to_s "Failed with #{response.code} #{response.message if response.respond_to?(:message)}" end |