Exception: Lazy::DivergenceError

Inherits:
Exception
  • Object
show all
Defined in:
lib/lazy.rb

Overview

Raised when a forced computation diverges (e.g. if it tries to directly use its own result)

Direct Known Subclasses

LazyException

Instance Method Summary collapse

Constructor Details

#initialize(message = "Computation diverges") ⇒ DivergenceError

Returns a new instance of DivergenceError.



18
19
20
# File 'lib/lazy.rb', line 18

def initialize( message="Computation diverges" )
  super( message )
end