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


613
614
615
# File 'lib/dropbox/api.rb', line 613

def initialize(code) # :nodoc
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

The HTTP error code returned by the event_metadata method.


611
612
613
# File 'lib/dropbox/api.rb', line 611

def code
  @code
end

Instance Method Details

#to_sObject

:nodoc:


617
618
619
# File 'lib/dropbox/api.rb', line 617

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