Package org.ojalgo

Class ProgrammingError

  • All Implemented Interfaces:
    java.io.Serializable, EffectiveThrowable

    public class ProgrammingError
    extends java.lang.RuntimeException
    implements EffectiveThrowable
    Incorrect use of the API. The code needs to be changed. Typically execution can't continue. Is never declared to be thrown, and should not be caught.
    See Also:
    Serialized Form
    • Constructor Detail

      • ProgrammingError

        public ProgrammingError​(java.lang.String message)
      • ProgrammingError

        public ProgrammingError​(java.lang.Throwable cause)
      • ProgrammingError

        protected ProgrammingError​(java.lang.String message,
                                   java.lang.Throwable cause)
      • ProgrammingError

        ProgrammingError()
      • ProgrammingError

        ProgrammingError​(java.lang.String message,
                         java.lang.Throwable cause,
                         boolean enableSuppression,
                         boolean writableStackTrace)
    • Method Detail

      • throwForIllegalInvocation

        public static void throwForIllegalInvocation()
        For hidden, not-to-be-used, constructors and methods.
      • throwForMultiplicationNotPossible

        public static void throwForMultiplicationNotPossible()
      • throwForTryingToModifyAnImmutableObject

        public static void throwForTryingToModifyAnImmutableObject()
      • throwForUnsupportedOptionalOperation

        public static void throwForUnsupportedOptionalOperation()
      • throwIfMultiplicationNotPossible

        public static void throwIfMultiplicationNotPossible​(Access2D<?> left,
                                                            Access2D<?> right)
      • throwIfNotEqualColumnDimensions

        public static void throwIfNotEqualColumnDimensions​(Access2D<?> mtrx1,
                                                           Access2D<?> mtrx2)
      • throwIfNotEqualDimensions

        public static void throwIfNotEqualDimensions​(Access2D<?> mtrx1,
                                                     Access2D<?> mtrx2)
      • throwIfNotEqualRowDimensions

        public static void throwIfNotEqualRowDimensions​(Structure2D mtrx1,
                                                        Structure1D mtrx2)
      • throwIfNotSquare

        public static void throwIfNotSquare​(Structure2D mtrx)
      • throwIfNull

        public static void throwIfNull​(java.lang.Object obj)
      • throwIfNull

        public static void throwIfNull​(java.lang.Object... objs)
      • throwIfNull

        public static void throwIfNull​(java.lang.Object obj1,
                                       java.lang.Object obj2)
      • throwIfNull

        public static void throwIfNull​(java.lang.Object obj1,
                                       java.lang.Object obj2,
                                       java.lang.Object obj3)
      • throwWithMessage

        public static void throwWithMessage​(java.lang.String messagePattern,
                                            java.lang.Object... args)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable