Exception: Crew::Context::TestError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/crew/context.rb

Instance Method Summary collapse

Constructor Details

#initialize(original_exception, stdout, stderr) ⇒ TestError

Returns a new instance of TestError.



19
20
21
# File 'lib/crew/context.rb', line 19

def initialize(original_exception, stdout, stderr)
  @original_exception, @stdout, @stderr = original_exception, stdout, stderr
end

Instance Method Details

#to_sObject



23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/crew/context.rb', line 23

def to_s
  %|
Error: #{@original_exception.message} (#{@original_exception.class})
#{@original_exception.backtrace.join("\n  ")}

Stderr:
#{@stderr}

Stdout:
#{@stdout}
  |.trim
end