Exception: Errors::InvalidDimensionArgument

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mosaiq/errors.rb

Overview

Raised when x or y arguments are not > 0

Instance Method Summary collapse

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