1#ifndef _MSPASS_ERROR_H_
2#define _MSPASS_ERROR_H_
14enum class ErrorSeverity {
25mspass::utility::ErrorSeverity string2severity(
const std::string howbad);
27std::string severity2string(
const mspass::utility::ErrorSeverity es);
44 message =
"MsPASS library error\n";
60 std::string s(howbad);
74 const ErrorSeverity s = ErrorSeverity::Invalid) {
148mspass::utility::ErrorSeverity
Base class for error object thrown by MsPASS library routines.
Definition MsPASSError.h:38
MsPASSError(const std::string mess, const ErrorSeverity s=ErrorSeverity::Invalid)
Definition MsPASSError.h:73
MsPASSError()
Definition MsPASSError.h:43
const char * what() const noexcept
Definition MsPASSError.h:100
ErrorSeverity severity() const
Definition MsPASSError.h:102
std::string message
Definition MsPASSError.h:108
MsPASSError(const std::string mess, const char *howbad)
Construct from a std::string with badness defined by keywords in a string.
Definition MsPASSError.h:58
void log_error(std::ostream &ofs)
Definition MsPASSError.h:89
void log_error()
Definition MsPASSError.h:87
MsPASSError(const char *mess, const ErrorSeverity s)
Definition MsPASSError.h:80
ErrorSeverity badness
Definition MsPASSError.h:110