org.ojalgo
Class ProgrammingError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ojalgo.ProgrammingError
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- MatrixError
public class ProgrammingError
- extends RuntimeException
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.
- Author:
- apete
- See Also:
- Serialized Form
ProgrammingError
public ProgrammingError(String aString)
ProgrammingError
public ProgrammingError(Throwable someCause)
throwForIllegalInvocation
public static void throwForIllegalInvocation()
- For hidden, not-to-be-used, constructors and methods.
throwForTryingToModifyAnImmutableObject
public static void throwForTryingToModifyAnImmutableObject()
throwForUnsupportedOptionalOperation
public static void throwForUnsupportedOptionalOperation()
throwIfNull
public static void throwIfNull(Object anObject)
- Instead of IllegalArgumentException and/or NullPointerException.
- Parameters:
anObject -
toString
public String toString()
- Overrides:
toString in class Throwable