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


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

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