Exception: ConvenientService::Support::Counter::Exceptions::ValueAfterDecrementIsLowerThanMinValue
- Inherits:
-
Exception
- Object
- StandardError
- Exception
- ConvenientService::Support::Counter::Exceptions::ValueAfterDecrementIsLowerThanMinValue
- Defined in:
- lib/convenient_service/support/counter.rb
Instance Method Summary collapse
Methods inherited from Exception
Instance Method Details
#initialize_with_kwargs(n:, current_value:, min_value:) ⇒ void
This method returns an undefined value.
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/convenient_service/support/counter.rb', line 42 def initialize_with_kwargs(n:, current_value:, min_value:) = <<~TEXT Value after decrement by `#{n}` is lower than the min value. Current value is `#{current_value}`. Min value is `#{min_value}`. TEXT initialize() end |