Class: I18n::InvalidInflectionKind
- Inherits:
-
InflectionPatternException
- Object
- ArgumentError
- InflectionException
- InflectionPatternException
- I18n::InvalidInflectionKind
- Defined in:
- lib/i18n-inflector/errors.rb
Overview
This is raised when a kind given in a pattern is invalid (empty, reserved or containing a reserved character).
Instance Attribute Summary
Attributes inherited from InflectionPatternException
Attributes inherited from InflectionException
Instance Method Summary collapse
-
#initialize(locale, pattern, kind) ⇒ InvalidInflectionKind
constructor
A new instance of InvalidInflectionKind.
- #message ⇒ Object
Constructor Details
#initialize(locale, pattern, kind) ⇒ InvalidInflectionKind
Returns a new instance of InvalidInflectionKind.
139 140 141 |
# File 'lib/i18n-inflector/errors.rb', line 139 def initialize(locale, pattern, kind) super(locale, pattern, nil, kind) end |
Instance Method Details
#message ⇒ Object
143 144 145 |
# File 'lib/i18n-inflector/errors.rb', line 143 def "" << super << "kind #{@kind.to_s.inspect} is invalid" end |