| 16 | }; |
| 17 | |
| 18 | class PolygonPointIndexOverflow : public Exception |
| 19 | { |
| 20 | public: |
| 21 | PolygonPointIndexOverflow( |
| 22 | void* polygon, std::size_t index, std::size_t maximum, DebugInfo info) |
| 23 | : Exception("PolygonPointIndexOverflow", info) |
| 24 | { |
| 25 | this->error("Tried to access PolygonPoint at index {} of Polygon at address " |
| 26 | "@{} when it " |
| 27 | "only contains {} points", |
| 28 | index, fmt::ptr(polygon), maximum); |
| 29 | } |
| 30 | }; |
| 31 | |
| 32 | class UnknownReferential : public Exception |
| 33 | { |