Exception: Calcpace::NonPositiveInputError

Inherits:
Error
  • Object
show all
Defined in:
lib/calcpace/errors.rb

Overview

Raised when a numeric input is not positive (zero or negative)

Instance Method Summary collapse

Constructor Details

#initialize(msg = 'Input must be a positive number.') ⇒ NonPositiveInputError

Returns a new instance of NonPositiveInputError.



18
19
20
# File 'lib/calcpace/errors.rb', line 18

def initialize(msg = 'Input must be a positive number.')
  super
end