Exception: Addressing::UnknownLocaleError

Inherits:
Error
  • Object
show all
Defined in:
lib/addressing/exceptions.rb

Overview

Raised when an unknown locale is provided

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(locale) ⇒ UnknownLocaleError

Returns a new instance of UnknownLocaleError.



19
20
21
22
# File 'lib/addressing/exceptions.rb', line 19

def initialize(locale)
  super("Unknown locale: #{locale}")
  @locale = locale
end

Instance Attribute Details

#localeObject (readonly)

Returns the value of attribute locale.



24
25
26
# File 'lib/addressing/exceptions.rb', line 24

def locale
  @locale
end