| 38 | }; |
| 39 | |
| 40 | class CanvasElementAlreadyExists : public Exception |
| 41 | { |
| 42 | public: |
| 43 | CanvasElementAlreadyExists(std::string_view id, std::string_view newElementType, |
| 44 | std::string_view existingElementType, DebugInfo info) |
| 45 | : Exception("CanvasElementAlreadyExists", info) |
| 46 | { |
| 47 | this->error("Impossible to create a Canvas::{} with id '{}' as there is " |
| 48 | "already a Canvas::{} with the same id"); |
| 49 | } |
| 50 | }; |
| 51 | |
| 52 | class InvalidSpriteColorType : public Exception |
| 53 | { |