Error class to throw when the matrix is accessed out of bounds. Inherits from std::exception.
More...
#include <GenericMatrix.h>
Error class to throw when the matrix is accessed out of bounds. Inherits from std::exception.
◆ MatrixOutOfBoundsError()
| MatrixOutOfBoundsError::MatrixOutOfBoundsError |
( |
int |
access_row, |
|
|
int |
access_col, |
|
|
int |
rows, |
|
|
int |
cols, |
|
|
const std::string & |
tag |
|
) |
| |
|
inline |
Constructor for the MatrixErrorOutOfBounds class. Builds the error message and saves it to the member variable m_error_string.
- Parameters
-
| access_row | The row number that was tried to access. |
| access_col | The colums number that was tried to access. |
| rows | The actual row number of the matrix object that was tried to access. |
| rows | The actual column number of the matrix object that was tried to access. |
◆ ~MatrixOutOfBoundsError()
| MatrixOutOfBoundsError::~MatrixOutOfBoundsError |
( |
| ) |
|
|
overridedefault |
◆ what()
| const char * MatrixOutOfBoundsError::what |
( |
| ) |
const |
|
inlineoverridenoexcept |
Supplies the error message as a c-style string/char array.
The documentation for this class was generated from the following file: