Exception: Dropbox::PingbackError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dropbox/api.rb

Overview

Raised when the event_metadata method returns an error.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (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_sObject

:nodoc:



572
573
574
# File 'lib/dropbox/api.rb', line 572

def to_s # :nodoc:
  "#{self.class.to_s} code #{@code}"
end