version  0.0.1
Defines the C++ API for MsPASS
Loading...
Searching...
No Matches
Public Member Functions | List of all members
mspass::utility::AntelopePfError Class Reference

Error class for AntelopePf object. More...

#include <AntelopePf.h>

Inheritance diagram for mspass::utility::AntelopePfError:
mspass::utility::MsPASSError

Public Member Functions

 AntelopePfError (std::string mess)
 
 AntelopePfError (const char *mess)
 
void log_error ()
 
- 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.
 
 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
 

Detailed Description

Error class for AntelopePf object.

This error object is similar to that for Metadata but tags all errors cleanly as originating from this child of Metadata. Note MsPASSError is a child of std::exception, so catch that to most easily fetch messages coming from this beast.

Constructor & Destructor Documentation

◆ AntelopePfError() [1/3]

mspass::utility::AntelopePfError::AntelopePfError ( )
inline
168 {
169 message = std::string("AntelopePfError->undefined error");
170 };
std::string message
Definition MsPASSError.h:108

◆ AntelopePfError() [2/3]

mspass::utility::AntelopePfError::AntelopePfError ( std::string  mess)
inline
171 {
172 message = "AntelopePfError object message=" + mess;
173 };

◆ AntelopePfError() [3/3]

mspass::utility::AntelopePfError::AntelopePfError ( const char *  mess)
inline
174 {
175 message = std::string("AntelopePfError object message=") + mess;
176 };

Member Function Documentation

◆ log_error()

void mspass::utility::AntelopePfError::log_error ( )
inline
177{ std::cerr << message << std::endl; };

The documentation for this class was generated from the following file: