Parent

Methods

Class/Module Index [+]

Quicksearch

Cucumber::WireSupport::WireException

Proxy for an exception that occured at the remote end of the wire

Public Class Methods

new(args, host, port) click to toggle source
# File lib/cucumber/wire_support/wire_exception.rb, line 12
def initialize(args, host, port)
  super args['message']
  if args['exception']
    self.class.extend(CanSetName)
    self.class.exception_name = "#{args['exception']} from #{host}:#{port}"
  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

Public Instance Methods

backtrace() click to toggle source
# File lib/cucumber/wire_support/wire_exception.rb, line 27
def backtrace
  @backtrace || super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.