Exception: Nxo::Error::HashCheckError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Nxo::Error::HashCheckError
- Defined in:
- lib/nxo/error.rb
Instance Attribute Summary collapse
-
#segment ⇒ Object
readonly
Returns the value of attribute segment.
Instance Method Summary collapse
-
#initialize(segment) ⇒ HashCheckError
constructor
A new instance of HashCheckError.
Constructor Details
#initialize(segment) ⇒ HashCheckError
Returns a new instance of HashCheckError.
24 25 26 27 |
# File 'lib/nxo/error.rb', line 24 def initialize(segment) super("Hash check failed while loading segment \"#{segment}\"") @segment = segment end |
Instance Attribute Details
#segment ⇒ Object (readonly)
Returns the value of attribute segment.
29 30 31 |
# File 'lib/nxo/error.rb', line 29 def segment @segment end |