Exception: BigBench::PostProcessor::Environment::BenchmarkNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bigbench/post_processor/environment.rb

Overview

Is raised when a benchmark scope block doesn’t find the desired benchmark

Instance Method Summary collapse

Constructor Details

#initialize(unexistant_benchmark) ⇒ BenchmarkNotFound

Returns a new instance of BenchmarkNotFound.



31
32
33
# File 'lib/bigbench/post_processor/environment.rb', line 31

def initialize(unexistant_benchmark)
  @unexistant_benchmark = unexistant_benchmark
end

Instance Method Details

#messageObject



35
36
37
# File 'lib/bigbench/post_processor/environment.rb', line 35

def message
  "Could not find Benchmark: '#{@unexistant_benchmark}'. Available benchmarks are: #{BigBench.benchmarks.map{ |b| b.name }.join(', ')}"
end