class Taxonomite::CircularRelation

Public Class Methods

new(msg = "Circular relation in attempt to add Taxonomite::Node.", parent = nil, child = nil) click to toggle source
Calls superclass method
# File lib/taxonomite/exceptions.rb, line 38
def initialize(msg = "Circular relation in attempt to add Taxonomite::Node.", parent = nil, child = nil)
  msg = "Circular reference in adding " +
        ( child.nil? ? "nil child" : "#{child.name} (#{child.entity_type})" ) +
        " as child of #{parent.name} (#{parent.entity_type})" unless parent.nil?
  super(msg)
end