Exception: FoundationKit::Errors::ClassNotImplementedError

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

Overview

Abstract Class Error

Instance Method Summary collapse

Constructor Details

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

Returns ClassNotImplementedError.

Parameters:

  • class_name: (String)

    name of the class where the abstract method is called

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

    message to override



38
39
40
# File 'lib/foundation_kit/errors.rb', line 38

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