Exception: BigO::SmallResultSetError

Inherits:
StandardError
  • Object
show all
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

Constructor Details

#initialize(resultset_size) ⇒ SmallResultSetError

Returns a new instance of SmallResultSetError.

Parameters:

  • resultset_size (Integer)

    number of values the result set contains.



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