Exception: Sipity::Exceptions::ExistingMethodsAlreadyDefined

Inherits:
RuntimeError
  • Object
show all
Defined in:
app/exceptions/sipity/exceptions.rb

Overview

When you go about building an object that has method missing expectations you may need to raise an exception if you are planning to catch a method_name via message missing, but won't because the method is already defined.

Instance Method Summary collapse

Constructor Details

#initialize(context, method_names) ⇒ ExistingMethodsAlreadyDefined

Returns a new instance of ExistingMethodsAlreadyDefined



35
36
37
# File 'app/exceptions/sipity/exceptions.rb', line 35

def initialize(context, method_names)
  super("#{context} implemented the following methods: #{method_names.inspect}. #{context} won't work as expected")
end