Exception: MenuCommander::MenuNotFound

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, paths: nil, config: nil) ⇒ MenuNotFound

Returns a new instance of MenuNotFound.



10
11
12
13
14
# File 'lib/menu_commander/exceptions.rb', line 10

def initialize(message=nil, paths: nil, config: nil)
  message ||= "Could not find menu configuration file"
  @paths, @config = paths, config
  super message
end

Instance Attribute Details

#configObject (readonly)

:nocov: - covered by external process



8
9
10
# File 'lib/menu_commander/exceptions.rb', line 8

def config
  @config
end

#pathsObject (readonly)

:nocov: - covered by external process



8
9
10
# File 'lib/menu_commander/exceptions.rb', line 8

def paths
  @paths
end