Exception: BigO::SmallResultSetError
- Inherits:
-
StandardError
- Object
- StandardError
- BigO::SmallResultSetError
- Defined in:
- lib/big-o/exceptions.rb
Overview
The function could not be run more than X times (where X is a configurable value).
This exception happens if the function is too slow to run, or if the timeout is too short.
Instance Method Summary collapse
-
#initialize(resultset_size) ⇒ SmallResultSetError
constructor
A new instance of SmallResultSetError.
Constructor Details
#initialize(resultset_size) ⇒ SmallResultSetError
Returns a new instance of SmallResultSetError.
7 8 9 10 |
# File 'lib/big-o/exceptions.rb', line 7 def initialize(resultset_size) super "Less than #{resultset_size} values could be retrieved." + " Try using longer timeout or a different range. (function complexity may be too high)" end |