Exception: ReplRunner::NoResultsError
- Inherits:
-
StandardError
- Object
- StandardError
- ReplRunner::NoResultsError
- Defined in:
- lib/repl_runner.rb
Instance Method Summary collapse
-
#initialize(command, regex, string) ⇒ NoResultsError
constructor
A new instance of NoResultsError.
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 |