Exception: Nxo::Error::HashCheckError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/nxo/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#segmentObject (readonly)

Returns the value of attribute segment.



29
30
31
# File 'lib/nxo/error.rb', line 29

def segment
  @segment
end