Exception: DbAgile::SchemaConflictError

Inherits:
SchemaError show all
Defined in:
lib/dbagile/core/schema/errors.rb

Overview

Raised when an operation on schemas fails because of conflicts (typically a merge operation without resolver block)

Database schema conflict between ##left and ##right

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(left, right, part_name = nil) ⇒ SchemaConflictError

Creates an error instance



37
38
39
40
41
# File 'lib/dbagile/core/schema/errors.rb', line 37

def initialize(left, right, part_name = nil)
  @left, @right = left, right
  @part_name = part_name
  super(left.parent)
end

Instance Attribute Details

#leftObject (readonly)

Left schema object



28
29
30
# File 'lib/dbagile/core/schema/errors.rb', line 28

def left
  @left
end

#part_nameObject (readonly)

Part name



34
35
36
# File 'lib/dbagile/core/schema/errors.rb', line 34

def part_name
  @part_name
end

#rightObject (readonly)

Right schema object



31
32
33
# File 'lib/dbagile/core/schema/errors.rb', line 31

def right
  @right
end

Instance Method Details

#messageObject



43
44
45
# File 'lib/dbagile/core/schema/errors.rb', line 43

def message
  "Schema conflict occured on #{left} : #{part_name}"
end