error.h File Reference
#include <TiledArray/config.h>
#include <stdexcept>
#include <string>
#include <iostream>
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:
Classes | |
class | TiledArray::Exception |
Namespaces | |
TiledArray | |
Macros | |
#define | TA_STRINGIZE_IMPL(s) #s |
#define | TA_STRINGIZE(s) TA_STRINGIZE_IMPL(s) |
#define | TA_ASSERT_MESSAGE(EXPR, ...) |
#define | TA_ASSERT(EXPR, ...) |
#define | TA_EXCEPTION_MESSAGE(file, line, mess) "TiledArray: exception at " file "(" TA_STRINGIZE(line) "): " mess |
#define | TA_EXCEPTION(m) |
#define | TA_USER_ERROR_MESSAGE(m) std::cerr << "!! ERROR TiledArray: " << m << "\n"; |
Functions | |
void | TiledArray::exception_break () |
void | TiledArray::assert_failed (const std::string &m) |
TiledArray initialization. | |
These functions initialize TiledArray and (if needed) MADWorld runtime.
| |
void | TiledArray::ta_abort () |
void | TiledArray::ta_abort (const std::string &m) |
Macro Definition Documentation
◆ TA_ASSERT
#define TA_ASSERT | ( | EXPR, | |
... | |||
) |
Value:
◆ TA_ASSERT_MESSAGE
#define TA_ASSERT_MESSAGE | ( | EXPR, | |
... | |||
) |
Value:
"TA_ASSERT failed: " TA_STRINGIZE(EXPR)
◆ TA_EXCEPTION
#define TA_EXCEPTION | ( | m | ) |
Value:
throws TiledArray::Exception with message m
annotated with the file name and line number
- Parameters
-
m a C-style string constant
◆ TA_EXCEPTION_MESSAGE
#define TA_EXCEPTION_MESSAGE | ( | file, | |
line, | |||
mess | |||
) | "TiledArray: exception at " file "(" TA_STRINGIZE(line) "): " mess |
◆ TA_STRINGIZE
#define TA_STRINGIZE | ( | s | ) | TA_STRINGIZE_IMPL(s) |
◆ TA_STRINGIZE_IMPL
◆ TA_USER_ERROR_MESSAGE
Definition: error.h:56