Exception: Dropbox::PingbackError
- Defined in:
- lib/dropbox/api.rb
Overview
Raised when the event_metadata method returns an error.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
The HTTP error code returned by the event_metadata method.
Instance Method Summary collapse
-
#initialize(code) ⇒ PingbackError
constructor
:nodoc.
-
#to_s ⇒ Object
:nodoc:.
Constructor Details
#initialize(code) ⇒ PingbackError
:nodoc
568 569 570 |
# File 'lib/dropbox/api.rb', line 568 def initialize(code) # :nodoc @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
The HTTP error code returned by the event_metadata method.
566 567 568 |
# File 'lib/dropbox/api.rb', line 566 def code @code end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
572 573 574 |
# File 'lib/dropbox/api.rb', line 572 def to_s # :nodoc: "#{self.class.to_s} code #{@code}" end |