Exception: Geminabox::GemStoreError

Inherits:
StandardError
  • Object
show all
Includes:
Nesty::NestedError
Defined in:
lib/geminabox/gem_store_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, reason) ⇒ GemStoreError

Returns a new instance of GemStoreError


8
9
10
11
# File 'lib/geminabox/gem_store_error.rb', line 8

def initialize(code, reason)
  @code = code.to_s
  @reason = reason
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code


4
5
6
# File 'lib/geminabox/gem_store_error.rb', line 4

def code
  @code
end

#reasonObject (readonly)

Returns the value of attribute reason


4
5
6
# File 'lib/geminabox/gem_store_error.rb', line 4

def reason
  @reason
end