Exception: Solrengine::Programs::ProgramError

Inherits:
Error
  • Object
show all
Defined in:
lib/solrengine/programs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code:, error_name:, message:) ⇒ ProgramError

Returns a new instance of ProgramError.



13
14
15
16
17
# File 'lib/solrengine/programs.rb', line 13

def initialize(code:, error_name:, message:)
  @code = code
  @error_name = error_name
  super("#{error_name} (#{code}): #{message}")
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



11
12
13
# File 'lib/solrengine/programs.rb', line 11

def code
  @code
end

#error_nameObject (readonly)

Returns the value of attribute error_name.



11
12
13
# File 'lib/solrengine/programs.rb', line 11

def error_name
  @error_name
end