Exception: TDP::ContradictionError

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

Overview

Raised when schema definition contains multiple patches with same name and different content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(patches) ⇒ ContradictionError

patches

an array of problematic patches (Patch objects)



68
69
70
71
72
73
# File 'lib/tdp.rb', line 68

def initialize(patches)
  super('Patches with same name and different content: ' +
    patches.map(&:full_filename).join(' / ')
  )
  @patches = patches.clone.freeze
end

Instance Attribute Details

#patchesObject (readonly)

Contradicting patches (Patch objects)



63
64
65
# File 'lib/tdp.rb', line 63

def patches
  @patches
end