Exception: TDP::NotAppliedError

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

Overview

Raised when patch exists in the schema definition but wasn’t applied to the database.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(patch) ⇒ NotAppliedError

patch

a problematic patch (a Patch object)



34
35
36
37
# File 'lib/tdp.rb', line 34

def initialize(patch)
  super "Patch is not applied: #{patch.name}"
  @patch = patch
end

Instance Attribute Details

#patchObject (readonly)

Problematic patch (a Patch object)



29
30
31
# File 'lib/tdp.rb', line 29

def patch
  @patch
end