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

Returns a new instance of RegistrationTypeMismatchError.



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

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