class Cucumber::Messages::Exception

#
A simplified representation of an exception
#
Represents the Exception message in Cucumber’s message protocol.
#

def self.from_h(hash)

#
Cucumber::Messages::Exception.from_h(some_hash) # => #

corresponding snake_cased attributes.
If the hash keys are camelCased, they are properly assigned to the
Returns a new Exception from the given hash.
#
def self.from_h(hash)
  return nil if hash.nil?
  new(
    type: hash[:type],
    message: hash[:message],
    stack_trace: hash[:stackTrace]
  )
end

def initialize(

def initialize(
  type: '',
  message: nil,
  stack_trace: nil
)
  @type = type
  @message = message
  @stack_trace = stack_trace
  super()
end