Harbor Documentation

Harbor::Container::RegistrationTypeMismatchError

Parent

Methods

Public Class Methods

new(registration_name, previously_registered_type, mismatched_type)

      # File lib/harbor/container.rb, line 25
25:       def initialize(registration_name, previously_registered_type, mismatched_type)
26:         super("\"\#{registration_name}\" has already been registered as a \#{previously_registered_type.inspect}\nbut a modification of Type to \#{mismatched_type.inspect} was attempted.\n".split($/).join(' '))
27:       end