Exception: AddressGeocoder::NeedToOveride

Inherits:
Error
  • Object
show all
Defined in:
lib/address_geocoder/error.rb

Overview

Class that defines an error, to be thrown when a method needs to be overwritten by a child class.

Since:

  • 0.0.1

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ NeedToOveride

Returns a new instance of NeedToOveride.

Since:

  • 0.0.1



9
10
11
# File 'lib/address_geocoder/error.rb', line 9

def initialize(msg = nil)
  @msg = msg
end

Instance Method Details

#messageObject

Since:

  • 0.0.1



13
14
15
16
# File 'lib/address_geocoder/error.rb', line 13

def message
  msg = 'This Method Needs To Be Overrided'
  @msg ? "#{msg}: #{@msg}" : msg
end