Skip to content
Snippets Groups Projects
Commit d8c50a79 authored by fefe's avatar fefe
Browse files

Add new exceptions

parent 87bac1a3
No related branches found
No related tags found
No related merge requests found
......@@ -111,9 +111,15 @@ public class Matrix {
}
public class notASquareException extends Exception{
public notASquareException(){
super("The matrix is not a square ! ");
}
}
public double det() {
if (!isSquare()) {
//throw new Exception("");
//throw new notASquareException();
}
if( nbCols() == 1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment