Sha256: e35c499be4b970833942bbeeeec45eaebdd445e8ca894ab60604fb239350d117

Contents?: true

Size: 253 Bytes

Versions: 1

Compression:

Stored size: 253 Bytes

Contents

module TikaMasala
  class TikaError < StandardError
    attr_reader :stdout

    def initialize(options = {})
      @stdout = options.fetch(:stdout, '')

      super("Non-zero exit code (#{options[:exitstatus]}): #{options[:stderr]}")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tika-masala-1.5.0 lib/tika-masala/exceptions/tika_error.rb