| 34 | }; |
| 35 | |
| 36 | class AnimationTextureIndexOverflow : public Exception |
| 37 | { |
| 38 | public: |
| 39 | AnimationTextureIndexOverflow(std::string_view animation, std::size_t index, |
| 40 | std::size_t maximum, DebugInfo info) |
| 41 | : Exception("AnimationTextureIndexOverflow", info) |
| 42 | { |
| 43 | this->error("Tried to access Texture of Animation '{}' at index {} when it " |
| 44 | "only contains {} textures", |
| 45 | animation, index, maximum); |
| 46 | } |
| 47 | }; |
| 48 | |
| 49 | class AnimationGroupTextureIndexOverflow : public Exception |
| 50 | { |