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.



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

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.



26
27
28
# File 'lib/kward/config_files.rb', line 26

def detail
  @detail
end

#formatObject (readonly)

Returns the value of attribute format.



26
27
28
# File 'lib/kward/config_files.rb', line 26

def format
  @format
end

#pathObject (readonly)

Returns the value of attribute path.



26
27
28
# File 'lib/kward/config_files.rb', line 26

def path
  @path
end