29 exception(
const char *msg,
const char *file,
unsigned line,
af_err err);
30 #if AF_API_VERSION >= 33 31 exception(
const char *msg,
const char *func,
const char *file,
unsigned line,
af_err err);
34 virtual const char *
what()
const throw() {
return m_msg; }
36 {
return s << e.
what(); }
Definition: exception.h:19
Definition: algorithm.h:14
AFAPI void af_get_last_error(char **msg, dim_t *len)
friend std::ostream & operator<<(std::ostream &s, const exception &e)
Definition: exception.h:35
virtual ~exception()
Definition: exception.h:33
af_err err()
Definition: exception.h:25
af_err
Definition: defines.h:63
long long dim_t
Definition: defines.h:50
#define AFAPI
Definition: defines.h:31
virtual const char * what() const
Definition: exception.h:34
AFAPI const char * af_err_to_string(const af_err err)