Exception: PDTP::Client::Transfer::HTTPException

Inherits:
Exception
  • Object
show all
Defined in:
lib/pdtp/client/transfer.rb

Overview

Generic HTTP Exception to be used on error

Instance Attribute Summary collapse

Instance Method Summary collapse

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,message)
  super(message)
  @code = code
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



35
36
37
# File 'lib/pdtp/client/transfer.rb', line 35

def code
  @code
end