Package edu.jas.arith

Class ModularNotInvertibleException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ModularNotInvertibleException
    extends NotInvertibleException
    Modular integer NotInvertibleException class. Runtime Exception to be thrown for not invertible modular integers. Container for the non-trivial factors found by the inversion algorithm. Note: cannot be generic because of Throwable.
    See Also:
    Serialized Form
    • Constructor Detail

      • ModularNotInvertibleException

        public ModularNotInvertibleException()
      • ModularNotInvertibleException

        public ModularNotInvertibleException​(java.lang.String c)
      • ModularNotInvertibleException

        public ModularNotInvertibleException​(java.lang.String c,
                                             java.lang.Throwable t)
      • ModularNotInvertibleException

        public ModularNotInvertibleException​(java.lang.Throwable t)
      • ModularNotInvertibleException

        public ModularNotInvertibleException​(GcdRingElem f,
                                             GcdRingElem f1,
                                             GcdRingElem f2)
        Constructor.
        Parameters:
        f - gcd ring element with f = f1 * f2.
        f1 - gcd ring element.
        f2 - gcd ring element.
      • ModularNotInvertibleException

        public ModularNotInvertibleException​(java.lang.String c,
                                             GcdRingElem f,
                                             GcdRingElem f1,
                                             GcdRingElem f2)
        Constructor.
        Parameters:
        f - gcd ring element with f = f1 * f2.
        f1 - gcd ring element.
        f2 - gcd ring element.
      • ModularNotInvertibleException

        public ModularNotInvertibleException​(java.lang.String c,
                                             java.lang.Throwable t,
                                             GcdRingElem f,
                                             GcdRingElem f1,
                                             GcdRingElem f2)
        Constructor.
        Parameters:
        f - gcd ring element with f = f1 * f2.
        f1 - gcd ring element.
        f2 - gcd ring element.
      • ModularNotInvertibleException

        public ModularNotInvertibleException​(java.lang.Throwable t,
                                             GcdRingElem f,
                                             GcdRingElem f1,
                                             GcdRingElem f2)
        Constructor.
        Parameters:
        f - gcd ring element with f = f1 * f2.
        f1 - gcd ring element.
        f2 - gcd ring element.
    • Method Detail

      • toString

        public java.lang.String toString()
        Get the String representation.
        Overrides:
        toString in class java.lang.Throwable
        See Also:
        Object.toString()