mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-18 14:45: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 {
|
struct connection_debug_request : hr_exception {
|
||||||
int id;
|
int id;
|
||||||
eGeometryClass c;
|
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 {
|
struct connection_error : hr_exception {
|
||||||
|
|||||||
@@ -1321,7 +1321,7 @@ EX void apply_other_model(shiftpoint H_orig, hyperpoint& ret, eModel md) {
|
|||||||
#if MAXMDIM >= 4
|
#if MAXMDIM >= 4
|
||||||
threepoint_projection(H, ret);
|
threepoint_projection(H, ret);
|
||||||
#else
|
#else
|
||||||
throw hr_exception();
|
throw hr_exception("three-point projection but MAXMDIM<4");
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -1683,7 +1683,7 @@ EX namespace hybrid {
|
|||||||
});
|
});
|
||||||
return spin(alpha) * twist::uxpush(tf) * twist::uypush(he) * twist::uzpush(lev) * C0;
|
return spin(alpha) * twist::uxpush(tf) * twist::uypush(he) * twist::uzpush(lev) * C0;
|
||||||
#else
|
#else
|
||||||
throw hr_exception();
|
throw hr_exception("get_corner but MAXMDIM<4");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user