Exception: Clacky::Utils::MissingRequiredParamsError
- Inherits:
-
StandardError
- Object
- StandardError
- Clacky::Utils::MissingRequiredParamsError
- Defined in:
- lib/clacky/utils/arguments_parser.rb
Overview
Custom exception for missing required parameters
Instance Attribute Summary collapse
-
#missing_params ⇒ Object
readonly
Returns the value of attribute missing_params.
-
#provided_params ⇒ Object
readonly
Returns the value of attribute provided_params.
-
#tool_name ⇒ Object
readonly
Returns the value of attribute tool_name.
Instance Method Summary collapse
-
#initialize(tool_name, missing_params, provided_params) ⇒ MissingRequiredParamsError
constructor
A new instance of MissingRequiredParamsError.
Constructor Details
#initialize(tool_name, missing_params, provided_params) ⇒ MissingRequiredParamsError
Returns a new instance of MissingRequiredParamsError.
180 181 182 183 184 185 |
# File 'lib/clacky/utils/arguments_parser.rb', line 180 def initialize(tool_name, missing_params, provided_params) @tool_name = tool_name @missing_params = missing_params @provided_params = provided_params super("Missing required parameters: #{missing_params.join(', ')}") end |
Instance Attribute Details
#missing_params ⇒ Object (readonly)
Returns the value of attribute missing_params.
178 179 180 |
# File 'lib/clacky/utils/arguments_parser.rb', line 178 def missing_params @missing_params end |
#provided_params ⇒ Object (readonly)
Returns the value of attribute provided_params.
178 179 180 |
# File 'lib/clacky/utils/arguments_parser.rb', line 178 def provided_params @provided_params end |
#tool_name ⇒ Object (readonly)
Returns the value of attribute tool_name.
178 179 180 |
# File 'lib/clacky/utils/arguments_parser.rb', line 178 def tool_name @tool_name end |