Exception: Scribd::ResponseError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Scribd::ResponseError
- 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
-
#code ⇒ Object
readonly
The error code.
Instance Method Summary collapse
-
#initialize(code) ⇒ ResponseError
constructor
Initializes the error with a given code.
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
#code ⇒ Object (readonly)
The error code.
26 27 28 |
# File 'lib/scribderrors.rb', line 26 def code @code end |