version
0.0.1
Defines the C++ API for MsPASS
|
special convenience class for matrix indexing errors. More...
#include <dmatrix.h>
Public Member Functions | |
dmatrix_index_error (const size_t nrmax, const size_t ncmax, const size_t ir, const size_t ic) | |
Public Member Functions inherited from mspass::utility::MsPASSError | |
MsPASSError () | |
MsPASSError (const std::string mess, const char *howbad) | |
Construct from a std::string with badness defined by keywords in a string. More... | |
MsPASSError (const std::string mess, const ErrorSeverity s=ErrorSeverity::Invalid) | |
MsPASSError (const char *mess, const ErrorSeverity s) | |
void | log_error () |
void | log_error (std::ostream &ofs) |
const char * | what () const noexcept |
ErrorSeverity | severity () const |
Additional Inherited Members | |
Protected Attributes inherited from mspass::utility::MsPASSError | |
std::string | message |
ErrorSeverity | badness |
special convenience class for matrix indexing errors.
Thrown by a dmatrix if a requested index is outside the bounds of the matrix dimension.
|
inline |
Basic constructor for this error object.
nrmax | number of rows in matrix |
ncmax | number of columns in matrix |
ir | row index requested |
ic | column index requested |
References mspass::utility::MsPASSError::badness, and mspass::utility::MsPASSError::message.