Exception: ReplRunner::NoResultsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/repl_runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(command, regex, string) ⇒ NoResultsError

Returns a new instance of NoResultsError.



12
13
14
15
16
# File 'lib/repl_runner.rb', line 12

def initialize(command, regex, string)
  msg =  "No result found for command: #{command.inspect}\nIn output: \n  #{string.inspect}\n"
  msg << "Using regex: \n  /#{regex}/\n"
  super(msg)
end