Exception: TDP::MismatchError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- TDP::MismatchError
- 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
-
#patch ⇒ Object
readonly
Problematic patch (a Patch object).
Instance Method Summary collapse
-
#initialize(patch) ⇒ MismatchError
constructor
- patch
-
a problematic patch (a Patch object).
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
#patch ⇒ Object (readonly)
Problematic patch (a Patch object)
46 47 48 |
# File 'lib/tdp.rb', line 46 def patch @patch end |