Exception: Interface::Error::NotImplementedError

Inherits:
NoMethodError
  • Object
show all
Defined in:
lib/interface/error/not_implemented_error.rb

Overview

Raised when a method has not been implemented by a class that has used the implements <InterfaceName> method.

Instance Method Summary collapse

Constructor Details

#initialize(class_name:, method_name:, method_arity:, interface_name:) ⇒ NotImplementedError

Returns a new instance of NotImplementedError.



6
7
8
# File 'lib/interface/error/not_implemented_error.rb', line 6

def initialize(class_name:, method_name:, method_arity:, interface_name:)
  super(error_message(class_name, method_name, method_arity, interface_name), method_name)
end