Class NotFiniteNumberException

    • Constructor Detail

      • NotFiniteNumberException

        public NotFiniteNumberException​(Number wrong,
                                        Object... args)
        Construct the exception.
        Parameters:
        wrong - Value that is infinite or NaN.
        args - Optional arguments.
      • NotFiniteNumberException

        public NotFiniteNumberException​(Localizable specific,
                                        Number wrong,
                                        Object... args)
        Construct the exception with a specific context.
        Parameters:
        specific - Specific context pattern.
        wrong - Value that is infinite or NaN.
        args - Optional arguments.
    • Method Detail

      • check

        public static void check​(double x)
        Check that the argument is a real number.
        Parameters:
        x - Argument.
        Throws:
        NotFiniteNumberException - if x is not a finite real number.
      • check

        public static void check​(double[] val)
        Check that all the elements are real numbers.
        Parameters:
        val - Arguments.
        Throws:
        NotFiniteNumberException - if any values of the array is not a finite real number.