Exception: FoundationKit::Errors::MethodNotImplementedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/foundation_kit/errors.rb

Overview

Abstract Method Error

Instance Method Summary collapse

Constructor Details

#initialize(class_name:, method_name:, message: 'is an abstract method and has not been implemented yet.') ⇒ Object

Returns MethodNotImplementedError.

Parameters:

  • class_name: (String)

    name of the class where the abstract method is called

  • method_name: (String)

    name of the abstract method called

  • message: ('is an abstract method and has not been implemented yet.'String) (defaults to: 'is an abstract method and has not been implemented yet.')

    message to override



22
23
24
# File 'lib/foundation_kit/errors.rb', line 22

def initialize(class_name:, method_name:, message: 'is an abstract method and has not been implemented yet.')
  super("#{class_name}##{method_name} #{message}")
end