Exception: Harbor::Container::RegistrationTypeMismatchError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/harbor/container.rb

Instance Method Summary collapse

Constructor Details

#initialize(registration_name, previously_registered_type, mismatched_type) ⇒ RegistrationTypeMismatchError



25
26
27
28
29
30
# File 'lib/harbor/container.rb', line 25

def initialize(registration_name, previously_registered_type, mismatched_type)
  super("    \"\#{registration_name}\" has already been registered as a \#{previously_registered_type.inspect}\n    but a modification of Type to \#{mismatched_type.inspect} was attempted.\n  EOS\nend\n".split($/).join(' '))