Exception: Bashcov::XtraceError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/bashcov/errors.rb

Overview

Signals an error parsing Bash’s debugging output.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, files) ⇒ XtraceError

Returns a new instance of XtraceError.

Parameters:

  • message (#to_s)

    An error message

  • files (Hash)

    A hash containing coverage information



11
12
13
14
# File 'lib/bashcov/errors.rb', line 11

def initialize(message, files)
  @files = files
  super(message)
end

Instance Attribute Details

#filesObject (readonly)

Will contain the coverages parsed prior to the error



7
8
9
# File 'lib/bashcov/errors.rb', line 7

def files
  @files
end