version
0.0.1
Defines the C++ API for MsPASS
|
Convenience class for dmatrix use errors. More...
#include <dmatrix.h>
Public Member Functions | |
dmatrix_size_error (const size_t nr1, const size_t nc1, const size_t nr2, const size_t nc2) | |
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 |
Convenience class for dmatrix use errors.
Thrown by a dmatrix when two matrices have a size mismatch.
|
inline |
Basic constructor for this error object.
nr1 | number of rows in matrix 1 |
nc1 | number of columns in matrix 1 |
nr1 | number of rows in matrix 2 |
nc1 | number of columns in matrix 2 |
References mspass::utility::MsPASSError::badness, and mspass::utility::MsPASSError::message.