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.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/geminabox/gem_store_error.rb', line 4 def code @code end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
4 5 6 |
# File 'lib/geminabox/gem_store_error.rb', line 4 def reason @reason end |