Exception: Clacky::Utils::MissingRequiredParamsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/clacky/utils/arguments_parser.rb

Overview

Custom exception for missing required parameters

Instance Attribute Summary collapse

Instance Method Summary collapse

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_paramsObject (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_paramsObject (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_nameObject (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