Exception: Identifiable::Errors::StyleMustBeAValidStyleError
- Inherits:
-
StandardError
- Object
- StandardError
- Identifiable::Errors::StyleMustBeAValidStyleError
- Defined in:
- lib/identifiable/errors.rb
Instance Method Summary collapse
-
#initialize(style_value) ⇒ StyleMustBeAValidStyleError
constructor
A new instance of StyleMustBeAValidStyleError.
Constructor Details
#initialize(style_value) ⇒ StyleMustBeAValidStyleError
Returns a new instance of StyleMustBeAValidStyleError.
27 28 29 30 |
# File 'lib/identifiable/errors.rb', line 27 def initialize(style_value) style_value_string = style_value.to_s || 'nil' super("The identifiable\'s style must be a valid stylist. You passed in #{style_value_string}, but the valid options are: #{Identifiable::Stylist::VALID_STYLES}") end |