53 #ifndef __GyotoError_H_ 54 #define __GyotoError_H_ 116 Error(
const std::string m );
136 operator const char * ()
const;
196 #define GYOTO_ERROR(msg) Gyoto::throwError(std::string(__FILE__ ":" GYOTO_STRINGIFY(__LINE__) " in ")+ __PRETTY_FUNCTION__ + ": " + msg) static void setHandler(Gyoto::Error::Handler_t *phandler)
Set application error handler.
const std::string message
Error message.
Definition: GyotoError.h:104
Class for thowing exceptions.
Definition: GyotoError.h:100
std::string get_message() const
Retrieve error message for custom handling of the exception.
Error(const std::string m)
Constructor with an error message.
const int errcode
Error code.
Definition: GyotoError.h:111
Gyoto ubiquitous macros and typedefs.
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
void throwError(std::string)
Throw a Gyoto::Error.
void Handler_t(const Error)
Error handler type.
Definition: GyotoError.h:159
int getErrcode() const
Retrieve error code.
void Report() const
Print-out error message on standard error.