Sha256: 2ea3cc1b004f476db1b8f0081a8e50b3b77d4edbae61d84559e0a61b81399ac5

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

module Staccato
  # Exception Hit type field definitions
  # @author Tony Pitale
  class Exception
    # Exception field definitions
    FIELDS = {
      description: 'exd',
      fatal: 'exf'
    }

    include Hit

    def initialize(*)
      super
      options[:fatal] = 1 if options[:fatal]
    end

    # exception hit type
    def type
      :exception
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
staccato-0.0.4 lib/staccato/exception.rb
staccato-0.0.3 lib/staccato/exception.rb