Exception: Errors::InvalidDimensionArgument
- Inherits:
-
StandardError
- Object
- StandardError
- Errors::InvalidDimensionArgument
- Defined in:
- lib/mosaiq/errors.rb
Overview
Raised when x or y arguments are not > 0
Instance Method Summary collapse
-
#initialize(key, value) ⇒ InvalidDimensionArgument
constructor
A new instance of InvalidDimensionArgument.
Constructor Details
#initialize(key, value) ⇒ InvalidDimensionArgument
Returns a new instance of InvalidDimensionArgument.
6 7 8 9 |
# File 'lib/mosaiq/errors.rb', line 6 def initialize(key, value) msg = "Argument '#{key}' cannot be '#{value.inspect}'. Please provide a number greater than 0." super msg end |