Sha256: f3abc339da9219e53bc10334e8538f1502bbd96cdfbaba04653be08941617fd6

Contents?: true

Size: 435 Bytes

Versions: 16

Compression:

Stored size: 435 Bytes

Contents

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

    include Hit

    # exception hit type
    def type
      :exception
    end

    # Boolean fields from Hit plus exception-specific field
    # @return [Array<Symbol>]
    def boolean_fields
      super + [:fatal]
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
staccato-0.5.3 lib/staccato/exception.rb
staccato-0.5.2 lib/staccato/exception.rb
staccato-0.5.1 lib/staccato/exception.rb
staccato-0.5.0 lib/staccato/exception.rb
staccato-0.4.7 lib/staccato/exception.rb
staccato-0.4.6 lib/staccato/exception.rb
staccato-0.4.5 lib/staccato/exception.rb
staccato-0.4.4 lib/staccato/exception.rb
staccato-0.4.3 lib/staccato/exception.rb
staccato-0.4.2 lib/staccato/exception.rb
staccato-0.4.1 lib/staccato/exception.rb
staccato-0.4.0 lib/staccato/exception.rb
staccato-0.3.1 lib/staccato/exception.rb
staccato-0.3.0 lib/staccato/exception.rb
staccato-0.2.1 lib/staccato/exception.rb
staccato-0.2.0 lib/staccato/exception.rb