Exception: Geminabox::GemStoreError
- Inherits:
-
StandardError
- Object
- StandardError
- Geminabox::GemStoreError
- Includes:
- Nesty::NestedError
- Defined in:
- lib/geminabox/gem_store_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(code, reason) ⇒ GemStoreError
constructor
A new instance of GemStoreError.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/geminabox/gem_store_error.rb', line 6 def code @code end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
6 7 8 |
# File 'lib/geminabox/gem_store_error.rb', line 6 def reason @reason end |