Sha256: 7ef51e44e00885b58e333aa967e3b6fd1aa343d33ca02569569feefd270f6b05
Contents?: true
Size: 847 Bytes
Versions: 20
Compression:
Stored size: 847 Bytes
Contents
module Cucumber module Wire # Proxy for an exception that occured at the remote end of the wire class Exception < StandardError module CanSetName attr_writer :exception_name def to_s @exception_name end end 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 def backtrace @backtrace || super end end end end
Version data entries
20 entries across 20 versions & 3 rubygems