|
MeshKit
1.0
|
#include <string>#include <typeinfo>#include "meshkit/iGeom.hpp"#include "meshkit/iMesh.hpp"#include "meshkit/iRel.hpp"

Go to the source code of this file.
Classes | |
| class | Error |
| The Error object returned from or thrown by many MeshKit functions. More... | |
Namespaces | |
| namespace | MeshKit |
Defines | |
| #define | ECERRCHK(err, descr) |
| #define | MKERRCHK(err, descr) |
| #define | MBERRCHK(err, mbimpl) |
| #define | IBERRCHK(err, x) IBERRCHK_((err), (x), __FILE__, __LINE__) |
Enumerations | |
| enum | ErrorCode { MK_SUCCESS = 0, MK_FAILURE, MK_NOT_FOUND, MK_MULTIPLE_FOUND, MK_MESHOP_NOT_FOUND, MK_NOT_IMPLEMENTED, MK_WRONG_DIMENSION, MK_ALREADY_DEFINED, MK_BAD_INPUT, MK_BAD_GEOMETRIC_EVALUATION, MK_INCOMPLETE_MESH_SPECIFICATION } |
Functions | |
| void | IBERRCHK_ (int err, const char *descr) |
| void | IBERRCHK_ (int err, iMesh &mesh) |
| void | IBERRCHK_ (int err, iGeom &geom) |
| void | IBERRCHK_ (int err, iRel &rel) |
| void | IBERRCHK_ (int err, const char *descr, const char *file, int line) |
| void | IBERRCHK_ (int err, iMesh &mesh, const char *file, int line) |
| void | IBERRCHK_ (int err, iGeom &geom, const char *file, int line) |
| void | IBERRCHK_ (int err, iRel &rel, const char *file, int line) |
Definition in file Error.hpp.
| #define ECERRCHK | ( | err, | |
| descr | |||
| ) |
do { \ if (MK_SUCCESS != err) { \ Error tmp_err(0, "%s, line %d: %s", __FILE__, __LINE__, descr); \ throw tmp_err; \ } \ } while(false)
| #define IBERRCHK | ( | err, | |
| x | |||
| ) | IBERRCHK_((err), (x), __FILE__, __LINE__) |
| #define MBERRCHK | ( | err, | |
| mbimpl | |||
| ) |
| #define MKERRCHK | ( | err, | |
| descr | |||
| ) |
do { \ if (MK_SUCCESS != err.error_code()) { \ Error tmp_err(0, "%s, line %d: %s: %s", __FILE__, __LINE__, err.what(), descr); \ err.set_string(tmp_err.what()); throw err; \ } \ } while(false)