Exception: TDP::ContradictionError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- TDP::ContradictionError
- Defined in:
- lib/tdp.rb
Overview
Raised when schema definition contains multiple patches with same name and different content.
Instance Attribute Summary collapse
-
#patches ⇒ Object
readonly
Contradicting patches (Patch objects).
Instance Method Summary collapse
-
#initialize(patches) ⇒ ContradictionError
constructor
- patches
-
an array of problematic patches (Patch objects).
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
#patches ⇒ Object (readonly)
Contradicting patches (Patch objects)
63 64 65 |
# File 'lib/tdp.rb', line 63 def patches @patches end |