Package io.github.skenvy
Class Collatz.FailedSaneParameterCheck
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.ArithmeticException
-
- io.github.skenvy.Collatz.FailedSaneParameterCheck
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Collatz
protected static class Collatz.FailedSaneParameterCheck extends ArithmeticException
Thrown when eitherP
, the modulus, ora
, the multiplicand, are zero.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FailedSaneParameterCheck(Collatz.SaneParameterErrMsg errorEnum)
Construct a FailedSaneParameterCheck with a message associated with the provided enum.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
FailedSaneParameterCheck
public FailedSaneParameterCheck(Collatz.SaneParameterErrMsg errorEnum)
Construct a FailedSaneParameterCheck with a message associated with the provided enum.- Parameters:
errorEnum
- The enum from which to extract the message.
-
-