Exception: Loaf::InvalidOptions

Inherits:
LoafError
  • Object
show all
Defined in:
lib/loaf/errors.rb

Overview

Raised when invalid options are passed to breadcrumbs view renderer.

InvalidOptions.new :name, :crumber, [:crumb]

Constant Summary

Constants inherited from LoafError

LoafError::BASE_KEY

Instance Method Summary collapse

Methods inherited from LoafError

#error_message, #translate

Constructor Details

#initialize(invalid, valid) ⇒ InvalidOptions

Returns a new instance of InvalidOptions.



22
23
24
25
26
27
28
# File 'lib/loaf/errors.rb', line 22

def initialize(invalid, valid)
  super(
    error_message("invalid_options",
      { :invalid => invalid, :valid => valid.join(', ') }
    )
  )
end