1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-17 06:07:12 +00:00

added descriptive messages to hr_exception when missing

This commit is contained in:
Zeno Rogue
2025-10-08 21:21:32 +02:00
parent 2b9a068ddc
commit 2836a4c27b
3 changed files with 3 additions and 3 deletions

View File

@@ -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 {

View File

@@ -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;

View File

@@ -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
}
}