Exception: Collatz::FailedSaneParameterCheck
- Inherits:
-
StandardError
- Object
- StandardError
- Collatz::FailedSaneParameterCheck
- Defined in:
- lib/collatz/utilities.rb
Overview
Thrown when either p, the modulus, or a, the multiplicand, are zero.
Instance Method Summary collapse
-
#initialize(msg = "This is a custom exception", exception_type = "FailedSaneParameterCheck") ⇒ FailedSaneParameterCheck
constructor
Construct a FailedSaneParameterCheck with a message associated with the provided enum.
Constructor Details
#initialize(msg = "This is a custom exception", exception_type = "FailedSaneParameterCheck") ⇒ FailedSaneParameterCheck
Construct a FailedSaneParameterCheck with a message associated with the provided enum.
39 40 41 42 |
# 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 |