Exception: Uplink::StorjError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/uplink/storj_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ StorjError

Returns a new instance of StorjError.



7
8
9
10
# File 'lib/uplink/storj_error.rb', line 7

def initialize(code, message)
  super(message)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



5
6
7
# File 'lib/uplink/storj_error.rb', line 5

def code
  @code
end