Exception: RST::AbstractMethodCallError

Inherits:
NotImplementedError
  • Object
show all
Defined in:
lib/errors/store_errors.rb

Overview

Exception thrown when an abstract method is called

Instance Method Summary collapse

Constructor Details

#initialize(message = 'Please define ') ⇒ AbstractMethodCallError

Returns a new instance of AbstractMethodCallError.



6
7
8
9
10
11
12
# File 'lib/errors/store_errors.rb', line 6

def initialize message='Please define '
  _message = [ message, format_backtrace(caller_locations(2,1)), 'Called from:']
  (3..24).to_a.each do |n|
    _message << format_backtrace(caller_locations(n,1))
  end
  super(_message.join(" => "))
end