Exception: TDP::MismatchError

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

Overview

Raised when signature of the patch in database doesn’t match the signature of the patch in schema definition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(patch) ⇒ MismatchError

patch

a problematic patch (a Patch object)



51
52
53
54
# File 'lib/tdp.rb', line 51

def initialize(patch)
  super "Applied patch doesn't match definition: #{patch.name}"
  @patch = patch
end

Instance Attribute Details

#patchObject (readonly)

Problematic patch (a Patch object)



46
47
48
# File 'lib/tdp.rb', line 46

def patch
  @patch
end