Package dev.nm.algebra.linear.matrix
Class MatrixAccessException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- dev.nm.algebra.linear.matrix.MatrixAccessException
-
- All Implemented Interfaces:
Serializable
public class MatrixAccessException extends RuntimeException
This is the runtime exception thrown when trying to access an invalid entry in a matrix, e.g., A[0, 0]. Matrix indices count from 1. The first entry (upper left hand corner) is A[1, 1].- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MatrixAccessException()
Construct an instance ofMatrixAccessException
.MatrixAccessException(String msg)
Construct an instance ofMatrixAccessException
with a message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MatrixAccessException
public MatrixAccessException()
Construct an instance ofMatrixAccessException
.
-
MatrixAccessException
public MatrixAccessException(String msg)
Construct an instance ofMatrixAccessException
with a message.- Parameters:
msg
- an error message
-
-