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