An ArrayFire exception class. More...
#include <exception.h>
Public Member Functions | |
af_err | err () |
exception () | |
exception (const char *msg) | |
Creates a new af::exception given a message. The error code is AF_ERR_UNKNOWN. More... | |
exception (const char *file, unsigned line, af_err err) | |
Creates a new exception with a formatted error message for a given file and line number in the source code. More... | |
exception (const char *msg, const char *file, unsigned line, af_err err) | |
Creates a new af::exception with a formatted error message for a given an error code, file and line number in the source code. More... | |
exception (const char *msg, const char *func, const char *file, unsigned line, af_err err) | |
Creates a new exception given a message, function name, file name, line number and error code. More... | |
virtual | ~exception () throw () |
virtual const char * | what () const throw () |
Returns an error message for the exception in a string format. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &s, const exception &e) |
Writes the exception to a stream. More... | |
An ArrayFire exception class.
Definition at line 21 of file exception.h.
exception | ( | ) |
exception | ( | const char * | msg | ) |
Creates a new af::exception given a message. The error code is AF_ERR_UNKNOWN.
Creates a new exception with a formatted error message for a given file and line number in the source code.
Creates a new af::exception with a formatted error message for a given an error code, file and line number in the source code.
Creates a new exception given a message, function name, file name, line number and error code.
|
inlinevirtual |
Definition at line 44 of file exception.h.
|
inline |
Definition at line 27 of file exception.h.
|
inlinevirtual |
Returns an error message for the exception in a string format.
Definition at line 46 of file exception.h.
|
friend |
Writes the exception to a stream.
Definition at line 49 of file exception.h.