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.



10
11
12
13
# File 'lib/geminabox/gem_store_error.rb', line 10

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



6
7
8
# File 'lib/geminabox/gem_store_error.rb', line 6

def code
  @code
end

#reasonObject (readonly)

Returns the value of attribute reason.



6
7
8
# File 'lib/geminabox/gem_store_error.rb', line 6

def reason
  @reason
end