Exception: Pdi::Spoon::KitchenError
- Inherits:
-
StandardError
- Object
- StandardError
- Pdi::Spoon::KitchenError
- Defined in:
- lib/pdi/spoon/kitchen_error.rb
Overview
This class subclasses Ruby’s StandardError and provides a mapping to custom Kitchen specific error codes to messages. You can find the list of errors in Pentaho’s documentation site, for example: help.pentaho.com/Documentation/8.0/Products/Data_Integration/Command_Line_Tools
Constant Summary collapse
- MESSAGES =
{ '1' => 'Errors occurred during processing', '2' => 'An unexpected error occurred during loading or running of the job', '7' => "The job couldn't be loaded from XML or the Repository", '8' => 'Error loading steps or plugins (error in loading one of the plugins mostly)', '9' => 'Command line usage printing' }.freeze
Instance Attribute Summary collapse
-
#execution ⇒ Object
readonly
Returns the value of attribute execution.
Instance Method Summary collapse
-
#initialize(execution) ⇒ KitchenError
constructor
A new instance of KitchenError.
Constructor Details
#initialize(execution) ⇒ KitchenError
Returns a new instance of KitchenError.
27 28 29 30 31 32 33 |
# File 'lib/pdi/spoon/kitchen_error.rb', line 27 def initialize(execution) @execution = execution = MESSAGES[execution.code.to_s] || 'Unknown' super() end |
Instance Attribute Details
#execution ⇒ Object (readonly)
Returns the value of attribute execution.
25 26 27 |
# File 'lib/pdi/spoon/kitchen_error.rb', line 25 def execution @execution end |