Files
CS327-Discrete-Structures-II/Orbital-Bodies/UndefinedMatrixOpException.java

14 lines
334 B
Java
Raw Normal View History

2025-10-05 22:53:40 -04:00
/**
* Thrown when a matrix oepration is applied to matrices of the wrong size.
*
* You don't need to edit this.
*/
public class UndefinedMatrixOpException extends Exception {
public UndefinedMatrixOpException(String message, Matrix m1, Matrix m2) {
super(message + "\nMatrix 1: " + m1 + "\n\nMatrix 2: " + m2);
}
}