Exception: DbAgile::SchemaConflictError
- Inherits:
-
SchemaError
- Object
- StandardError
- Error
- SchemaError
- DbAgile::SchemaConflictError
- Defined in:
- lib/dbagile/core/schema/errors.rb
Overview
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Left schema object.
-
#part_name ⇒ Object
readonly
Part name.
-
#right ⇒ Object
readonly
Right schema object.
Instance Method Summary collapse
-
#initialize(left, right, part_name = nil) ⇒ SchemaConflictError
constructor
Creates an error instance.
- #message ⇒ Object
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
#left ⇒ Object (readonly)
Left schema object
28 29 30 |
# File 'lib/dbagile/core/schema/errors.rb', line 28 def left @left end |
#part_name ⇒ Object (readonly)
Part name
34 35 36 |
# File 'lib/dbagile/core/schema/errors.rb', line 34 def part_name @part_name end |
#right ⇒ Object (readonly)
Right schema object
31 32 33 |
# File 'lib/dbagile/core/schema/errors.rb', line 31 def right @right end |
Instance Method Details
#message ⇒ Object
43 44 45 |
# File 'lib/dbagile/core/schema/errors.rb', line 43 def "Schema conflict occured on #{left} : #{part_name}" end |