Exception: Crew::Context::TestError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Crew::Context::TestError
- Defined in:
- lib/crew/context.rb
Instance Method Summary collapse
-
#initialize(original_exception, stdout, stderr) ⇒ TestError
constructor
A new instance of TestError.
- #to_s ⇒ Object
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_s ⇒ Object
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.} (#{@original_exception.class}) #{@original_exception.backtrace.join("\n ")} Stderr: #{@stderr} Stdout: #{@stdout} |.trim end |