Exception: PDTP::Client::Transfer::HTTPException
- Inherits:
-
Exception
- Object
- Exception
- PDTP::Client::Transfer::HTTPException
- Defined in:
- lib/pdtp/client/transfer.rb
Overview
Generic HTTP Exception to be used on error
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ HTTPException
constructor
A new instance of HTTPException.
Constructor Details
#initialize(code, message) ⇒ HTTPException
Returns a new instance of HTTPException.
36 37 38 39 |
# File 'lib/pdtp/client/transfer.rb', line 36 def initialize(code,) super() @code = code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
35 36 37 |
# File 'lib/pdtp/client/transfer.rb', line 35 def code @code end |