-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMatrixException.cpp
More file actions
22 lines (17 loc) · 845 Bytes
/
MatrixException.cpp
File metadata and controls
22 lines (17 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "pch.h"
#include "MatrixException.h"
const char* MatrixException::what() const throw() {
return "MatrixException: Matrix has thrown an unkown exception!";
}
const char* MatrixIndexOutOfBoundsException::what() const throw() {
return "MatrixIndexOutOfBoundsException: Index used to access Matrix element is not within the Matrix bounds!";
}
const char* MatrixIncompatibleDimensionsException::what() const throw() {
return "MatrixIncompatibleDimensionsException: Matrix operation cannot be performed with the dimensions specified!";
}
const char* MatrixNotSquareException::what() const throw() {
return "MatrixNotSquareException: Operation only valid for a square matrix!";
}
const char* MatrixNotInvertibleException::what() const throw() {
return "MatrixNotInvertibleException: Matrix is not invertible!";
}