Skip to content
Kward Search API index

Exception: Kward::ConfigFiles::ConfigError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/kward/config_files.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:, format:, detail:) ⇒ ConfigError

Returns a new instance of ConfigError.



31
32
33
34
35
36
# File 'lib/kward/config_files.rb', line 31

def initialize(path:, format:, detail:)
  @path = path
  @format = format
  @detail = detail
  super("Invalid Kward config #{format}: #{path}: #{detail}")
end

Instance Attribute Details

#detailObject (readonly)

Returns the value of attribute detail.



29
30
31
# File 'lib/kward/config_files.rb', line 29

def detail
  @detail
end

#formatObject (readonly)

Returns the value of attribute format.



29
30
31
# File 'lib/kward/config_files.rb', line 29

def format
  @format
end

#pathObject (readonly)

Returns the value of attribute path.



29
30
31
# File 'lib/kward/config_files.rb', line 29

def path
  @path
end