Exception: Lazy::DivergenceError
- Inherits:
-
Exception
- Object
- Exception
- Lazy::DivergenceError
- 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
Instance Method Summary collapse
-
#initialize(message = "Computation diverges") ⇒ DivergenceError
constructor
A new instance of DivergenceError.
Constructor Details
#initialize(message = "Computation diverges") ⇒ DivergenceError
Returns a new instance of DivergenceError.
18 19 20 |
# File 'lib/lazy.rb', line 18 def initialize( ="Computation diverges" ) super( ) end |