class Collatz::FailedSaneParameterCheck

Thrown when either p, the modulus, or a, the multiplicand, are zero.

Public Class Methods

new(msg = "This is a custom exception", exception_type = "FailedSaneParameterCheck") click to toggle source

Construct a FailedSaneParameterCheck with a message associated with the provided enum. @param [String] msg One of the SaneParameterErrMsg strings.

Calls superclass method
# File lib/collatz/utilities.rb, line 39
def initialize(msg = "This is a custom exception", exception_type = "FailedSaneParameterCheck")
  @exception_type = exception_type
  super(msg)
end