Package org.ojalgo
Class ProgrammingError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.ojalgo.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
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ProgrammingError()
ProgrammingError(java.lang.String message)
ProgrammingError(java.lang.String message, java.lang.Throwable cause)
ProgrammingError(java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace)
ProgrammingError(java.lang.Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
throwForIllegalInvocation()
For hidden, not-to-be-used, constructors and methods.static void
throwForMultiplicationNotPossible()
static void
throwForTryingToModifyAnImmutableObject()
static void
throwForUnsupportedOptionalOperation()
static void
throwIfMultiplicationNotPossible(Access2D<?> left, Access2D<?> right)
static void
throwIfNotEqualColumnDimensions(Access2D<?> mtrx1, Access2D<?> mtrx2)
static void
throwIfNotEqualDimensions(Access2D<?> mtrx1, Access2D<?> mtrx2)
static void
throwIfNotEqualRowDimensions(Structure2D mtrx1, Structure1D mtrx2)
static void
throwIfNotSquare(Structure2D mtrx)
static void
throwIfNull(java.lang.Object obj)
static void
throwIfNull(java.lang.Object... objs)
static void
throwIfNull(java.lang.Object obj1, java.lang.Object obj2)
static void
throwIfNull(java.lang.Object obj1, java.lang.Object obj2, java.lang.Object obj3)
static void
throwWithMessage(java.lang.String messagePattern, java.lang.Object... args)
java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProgrammingError
public ProgrammingError(java.lang.String message)
-
ProgrammingError
public ProgrammingError(java.lang.Throwable cause)
-
ProgrammingError
ProgrammingError()
-
ProgrammingError
ProgrammingError(java.lang.String message, java.lang.Throwable cause)
-
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 classjava.lang.Throwable
-
-