Exception: Angus::RequiredParameterNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- Angus::RequiredParameterNotFound
- Defined in:
- lib/angus/utils/exceptions/required_parameter_not_fond.rb
Instance Attribute Summary collapse
-
#not_found_parameters ⇒ Object
Returns the value of attribute not_found_parameters.
Instance Method Summary collapse
- #error_key ⇒ Object
-
#initialize(not_found_parameters) ⇒ RequiredParameterNotFound
constructor
A new instance of RequiredParameterNotFound.
- #message ⇒ Object
Constructor Details
#initialize(not_found_parameters) ⇒ RequiredParameterNotFound
Returns a new instance of RequiredParameterNotFound.
6 7 8 |
# File 'lib/angus/utils/exceptions/required_parameter_not_fond.rb', line 6 def initialize(not_found_parameters) @not_found_parameters = not_found_parameters end |
Instance Attribute Details
#not_found_parameters ⇒ Object
Returns the value of attribute not_found_parameters.
4 5 6 |
# File 'lib/angus/utils/exceptions/required_parameter_not_fond.rb', line 4 def not_found_parameters @not_found_parameters end |
Instance Method Details
#error_key ⇒ Object
10 11 12 |
# File 'lib/angus/utils/exceptions/required_parameter_not_fond.rb', line 10 def error_key 'TODO define' end |
#message ⇒ Object
14 15 16 |
# File 'lib/angus/utils/exceptions/required_parameter_not_fond.rb', line 14 def @not_found_parameters.map(&:name).join(', ') end |