1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-12-21 13:14:29 +00:00

Hadrons: custom abort with module trace

This commit is contained in:
2018-04-23 12:48:00 +01:00
parent 1c9722357d
commit b0b5b34bff
3 changed files with 29 additions and 16 deletions

View File

@@ -56,6 +56,7 @@ namespace Exceptions
DECL_EXC(Implementation, Logic);
DECL_EXC(Range, Logic);
DECL_EXC(Size, Logic);
// runtime errors
DECL_EXC(Runtime, std::runtime_error);
DECL_EXC(Argument, Runtime);
@@ -64,6 +65,9 @@ namespace Exceptions
DECL_EXC(Parsing, Runtime);
DECL_EXC(Program, Runtime);
DECL_EXC(System, Runtime);
// abort functions
void abort(const std::exception& e);
}
END_HADRONS_NAMESPACE