Exception: Cucumber::WireSupport::WireException
- Defined in:
- lib/cucumber/wire_support/wire_exception.rb
Overview
Proxy for an exception that occured at the remote end of the wire
Defined Under Namespace
Modules: CanSetName
Instance Method Summary collapse
- #backtrace ⇒ Object
-
#initialize(args, config) ⇒ WireException
constructor
A new instance of WireException.
Constructor Details
#initialize(args, config) ⇒ WireException
Returns a new instance of WireException.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/cucumber/wire_support/wire_exception.rb', line 12 def initialize(args, config) super args['message'] if args['exception'] self.class.extend(CanSetName) self.class.exception_name = "#{args['exception']} from #{config}" end if args['backtrace'] @backtrace = if args['backtrace'].is_a?(String) args['backtrace'].split("\n") # TODO: change cuke4nuke to pass an array instead of a big string else args['backtrace'] end end end |
Instance Method Details
#backtrace ⇒ Object
27 28 29 |
# File 'lib/cucumber/wire_support/wire_exception.rb', line 27 def backtrace @backtrace || super end |