- 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 longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description (package private)ProgrammingError()ProgrammingError(java.lang.String message)protectedProgrammingError(java.lang.String message, java.lang.Throwable cause)(package private)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 voidthrowForIllegalInvocation()For hidden, not-to-be-used, constructors and methods.static voidthrowForMultiplicationNotPossible()static voidthrowForTryingToModifyAnImmutableObject()static voidthrowForUnsupportedOptionalOperation()static voidthrowIfMultiplicationNotPossible(Access2D<?> left, Access2D<?> right)static voidthrowIfNotEqualColumnDimensions(Access2D<?> mtrx1, Access2D<?> mtrx2)static voidthrowIfNotEqualDimensions(Access2D<?> mtrx1, Access2D<?> mtrx2)static voidthrowIfNotEqualRowDimensions(Structure2D mtrx1, Structure1D mtrx2)static voidthrowIfNotSquare(Structure2D mtrx)static voidthrowIfNull(java.lang.Object obj)static voidthrowIfNull(java.lang.Object... objs)static voidthrowIfNull(java.lang.Object obj1, java.lang.Object obj2)static voidthrowIfNull(java.lang.Object obj1, java.lang.Object obj2, java.lang.Object obj3)static voidthrowWithMessage(java.lang.String messagePattern, java.lang.Object... args)java.lang.StringtoString()
-
-
-
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
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:
toStringin classjava.lang.Throwable
-
-