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:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user