Exception: Scribd::ResponseError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/scribderrors.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

Initializes the error with a given code.



30
31
32
# File 'lib/scribderrors.rb', line 30

def initialize(code)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

The error code.



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

def code
  @code
end