Exception: Solrengine::Programs::ProgramError
- Defined in:
- lib/solrengine/programs.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#error_name ⇒ Object
readonly
Returns the value of attribute error_name.
Instance Method Summary collapse
-
#initialize(code:, error_name:, message:) ⇒ ProgramError
constructor
A new instance of ProgramError.
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}): #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
11 12 13 |
# File 'lib/solrengine/programs.rb', line 11 def code @code end |
#error_name ⇒ Object (readonly)
Returns the value of attribute error_name.
11 12 13 |
# File 'lib/solrengine/programs.rb', line 11 def error_name @error_name end |