org.ojalgo
Class ProgrammingError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
ProgrammingError(String aString)
           
ProgrammingError(Throwable someCause)
           
 
Method Summary
static void throwForIllegalInvocation()
          For hidden, not-to-be-used, constructors and methods.
static void throwForTryingToModifyAnImmutableObject()
           
static void throwForUnsupportedOptionalOperation()
           
static void throwIfNull(Object anObject)
          Instead of IllegalArgumentException and/or NullPointerException.
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProgrammingError

public ProgrammingError(String aString)

ProgrammingError

public ProgrammingError(Throwable someCause)
Method Detail

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