From 2836a4c27bc39202f54bd1a1ed377e4ba2e3ee04 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 8 Oct 2025 21:21:32 +0200 Subject: [PATCH] added descriptive messages to hr_exception when missing --- arbitrile.cpp | 2 +- hypgraph.cpp | 2 +- nonisotropic.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arbitrile.cpp b/arbitrile.cpp index c4bf2256..04a68c4b 100644 --- a/arbitrile.cpp +++ b/arbitrile.cpp @@ -211,7 +211,7 @@ string hr_polygon_error::generate_error() { struct connection_debug_request : hr_exception { int id; eGeometryClass c; - connection_debug_request(int i): id(i), c(cgclass) {} + connection_debug_request(int i): hr_exception("connection_debug_request"), id(i), c(cgclass) {} }; struct connection_error : hr_exception { diff --git a/hypgraph.cpp b/hypgraph.cpp index a0dbaa2f..bb660be9 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -1321,7 +1321,7 @@ EX void apply_other_model(shiftpoint H_orig, hyperpoint& ret, eModel md) { #if MAXMDIM >= 4 threepoint_projection(H, ret); #else - throw hr_exception(); + throw hr_exception("three-point projection but MAXMDIM<4"); #endif break; diff --git a/nonisotropic.cpp b/nonisotropic.cpp index 508fef91..b712826a 100644 --- a/nonisotropic.cpp +++ b/nonisotropic.cpp @@ -1683,7 +1683,7 @@ EX namespace hybrid { }); return spin(alpha) * twist::uxpush(tf) * twist::uypush(he) * twist::uzpush(lev) * C0; #else - throw hr_exception(); + throw hr_exception("get_corner but MAXMDIM<4"); #endif } }