Exception: Scribd::ResponseError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/scribd/errors.rb

Overview

Raised when a remote error occurs. Remote errors are referenced by numerical code. The online API documentation has a list of possible error codes and their descriptions for each API method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ ResponseError

Returns a new instance of ResponseError.



29
30
31
# File 'lib/scribd/errors.rb', line 29

def initialize(code)
  @code = code
end

Instance Attribute Details

#codeFixnum, String (readonly)

Returns The error code.

Returns:

  • (Fixnum, String)

    The error code.



26
27
28
# File 'lib/scribd/errors.rb', line 26

def code
  @code
end