Exception: ComicWalker::Client::Error
- Inherits:
-
StandardError
- Object
- StandardError
- ComicWalker::Client::Error
- Defined in:
- lib/comic_walker/client.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(code, reason) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, reason) ⇒ Error
Returns a new instance of Error.
16 17 18 19 20 |
# File 'lib/comic_walker/client.rb', line 16 def initialize(code, reason) super("#{code}: #{reason}") @code = code @reason = reason end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
15 16 17 |
# File 'lib/comic_walker/client.rb', line 15 def code @code end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
15 16 17 |
# File 'lib/comic_walker/client.rb', line 15 def reason @reason end |