R-Type  2
Doom but in better
Loading...
Searching...
No Matches
Invalid.cpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2024
3** rtype (Workspace)
4** File description:
5** Invalid.cpp
6*/
7
15
16namespace CustomExceptions
17{
18
19 InvalidIp::InvalidIp(const std::string &error)
20 {
21 _msg = "Error: The ip you provided '";
22 _msg += error;
23 _msg += "' is incorrect.";
24 _buffer = _msg.c_str();
25 };
26
28
29 const char *InvalidIp::what() const noexcept
30 {
31 return _buffer;
32 }
33
34 InvalidPort::InvalidPort(const std::string &error)
35 {
36 _msg = "Error: The port you provided '";
37 _msg += error;
38 _msg += "' is incorrect.";
39 _buffer = _msg.c_str();
40 };
41
43
44 const char *InvalidPort::what() const noexcept
45 {
46 return _buffer;
47 }
48
49 InvalidFontConfiguration::InvalidFontConfiguration(const std::string &userConfiguration, const std::string &fontName)
50 {
51 _msg = "Error: The configuration you provided for the font '" + fontName + "' is incorrect.\n";
52 _msg += "Below is a crude explanation of the structure, for more detailed information, please refer to the online documentation at: https://rtype.pingpal.news\n";
53 _msg += "You provided:\n" + userConfiguration + "\n";
54 _msg += "When the following structure was expected:\n";
55 _msg += "[<font_name>] (this is the loaded version, in the file it should be [font.<font_name>]) : the name of the font (unique identifier)\n";
56 _msg += "name = \"<name of the font>\" : set the name of the font (a human readable name)\n";
57 _msg += "path = \"<path to the font file>\" : set the path to the file (supported format, ttf, otf [and other SFML Font supported formats])\n";
58 _msg += "default_size = <size> : (0 to 100) set the default size of the font to display, in pixels.\n";
59 _msg += "bold = false : (or true) set the font to bold.\n";
60 _msg += "italic = false : (or true) set the font to italic\n";
61 _buffer = _msg.c_str();
62 };
63
65
66 const char *InvalidFontConfiguration::what() const noexcept
67 {
68 return _buffer;
69 }
70
71 InvalidMusicConfiguration::InvalidMusicConfiguration(const std::string &userConfiguration, const std::string &musicName)
72 {
73 _msg = "Error: The configuration you provided for the music '" + musicName + "' is incorrect.\n";
74 _msg += "Below is a crude explanation of the structure, for more detailed information, please refer to the online documentation at: https://rtype.pingpal.news\n";
75 _msg += "You provided:\n" + userConfiguration + "\n";
76 _msg += "When the following structure was expected:\n";
77 _msg += "[<music_name>] (this is the loaded version, in the file it should be [music.<music_name>]) : the name of the music (unique identifier)\n";
78 _msg += "name = \"<name of the music>\" : set the name of the music (a human readable name).\n";
79 _msg += "path = \"<valid path to the audio file>\" : set the path to the file (supported format, ogg, wav [and other SFML Music supported formats]).\n";
80 _msg += "loop = true : (or false) # play the music on repeat.\n";
81 _msg += "volume = <volume> : (0 to 100) set the volume of the track to play.\n";
82 _buffer = _msg.c_str();
83 };
84
86
87 const char *InvalidMusicConfiguration::what() const noexcept
88 {
89 return _buffer;
90 }
91
92 InvalidSpriteConfiguration::InvalidSpriteConfiguration(const std::string &userConfiguration, const std::string &spriteName, const std::string &exceptionDetail)
93 {
94 _msg = "Error: The configuration you provided for the sprite '" + spriteName + "' is incorrect.\n";
95 _msg += "Below is a crude explanation of the structure, for more detailed information, please refer to the online documentation at: https://rtype.pingpal.news\n";
96 _msg += "You provided:\n" + userConfiguration + "\n";
97 if (!exceptionDetail.empty()) {
98 _msg += "Additional details about the error: (" + exceptionDetail + ")\n";
99 }
100 _msg += "When the following structure was expected:\n";
101 _msg += "[<spritesheet_name>] (this is the loaded version, in the file it should be [spritesheet.<spritesheet_name>]) : the name of the spritesheet (unique identifier)\n";
102 _msg += "name = \"<name of the sprite>\" : set the name of the sprite (a human readable name).\n";
103 _msg += "path = \"<valid path to the image file>\" : set the path to the file (supported format, gif, png [and other SFML Texture supported formats]).\n";
104 _msg += "sprite_width = <width> : (0 to 1000) set the width of the sprite view field, in pixels.\n";
105 _msg += "sprite_height = <height> : (0 to 1000) set the height of the sprite view field, in pixels.\n";
106 _msg += "start_left = true : (or false) set the starting position of the sprite view field to start from the left (or not).\n";
107 _msg += "start_top = true : (or false) set the starting position of the sprite view field to start from the top (or not).\n";
108 _msg += "initial_frame = 0 : set the frame that will be used as the first one, here the number represents the index of the frame.\n";
109 _msg += "end_frame = -1 : (or the index of the frame) set the last frame to be taken from the spritesheet(-1 means all frames present), (default value: -1).\n";
110 _msg += "fame_delay = 100 : (from 0 to 2147483647) delay between each frame in milliseconds (default value: 100)\n";
111 _buffer = _msg.c_str();
112 };
113
115
116 const char *InvalidSpriteConfiguration::what() const noexcept
117 {
118 return _buffer;
119 }
120
121 InvalidIconConfiguration::InvalidIconConfiguration(const std::string &tomlPath, const std::string &userConfiguration, const std::string &spriteName, const std::string &exceptionDetail)
122 {
123 _msg = "Error: The configuration you provided for the icon '" + spriteName + "' in path '" + tomlPath + "'is incorrect.\n";
124 _msg += "Below is a crude explanation of the structure, for more detailed information, please refer to the online documentation at: https://rtype.pingpal.news\n";
125 _msg += "You provided:\n" + userConfiguration + "\n";
126 if (!exceptionDetail.empty()) {
127 _msg += "Additional details about the error: (" + exceptionDetail + ")\n";
128 }
129 _msg += "When the following structure was expected:\n";
130 _msg += "[icon] (this is the loaded version, in the file it should be [icon]) : the section containing the logo (unique identifier)\n";
131 _msg += "name = \"Logo Name\" : the name of the logo\n";
132 _msg += "path = \"<path to the logo>\" : set the path to the logo image\n";
133 _msg += "width = <width> : (0 to 1000) set the initial width of the logo (Default: 256)\n";
134 _msg += "height = <height> : (0 to 1000) set the initial height of the logo (Default: 256)\n";
135 _msg += "x = <x> : (0 to 2147483647) set the initial x position of the logo (Default: 0)\n";
136 _msg += "y = <y> : (0 to 2147483647) set the initial y position of the logo (Default: 0)\n";
137 _buffer = _msg.c_str();
138 };
139
141
142 const char *InvalidIconConfiguration::what() const noexcept
143 {
144 return _buffer;
145 }
146
147 InvalidBackgroundConfiguration::InvalidBackgroundConfiguration(const std::string &tomlPath, const std::string &userConfiguration, const std::string &spriteName, const std::string &exceptionDetail)
148 {
149 _msg = "Error: The configuration you provided for the background '" + spriteName + "' in path '" + tomlPath + "' is incorrect.\n";
150 _msg += "Below is a crude explanation of the structure, for more detailed information, please refer to the online documentation at: https://rtype.pingpal.news\n";
151 _msg += "You provided:\n" + userConfiguration + "\n";
152 if (!exceptionDetail.empty()) {
153 _msg += "Additional details about the error: (" + exceptionDetail + ")\n";
154 }
155 _msg += "When the following structure was expected:\n";
156 _msg += "[<background_name>] (this is the loaded version, in the file it should be [backgrounds.<background_name>]) : the name of the background (unique identifier)\n";
157 _msg += "name = \"<name of the background>\" : set the name of the background(a human readable name)\n";
158 _msg += "path = \"<path to the background>\" : set the path to the background image\n";
159 _msg += "x = <x> : (0 to 2147483647) set the x position of the background (Default: 0)\n";
160 _msg += "y = <y> : (0 to 2147483647) set the y position of the background (Default: 0)\n";
161 _msg += "allow_as_level_background = true : (or false) allow the background to be used as a level background (Default: true)\n";
162 _buffer = _msg.c_str();
163 };
164
166
167 const char *InvalidBackgroundConfiguration::what() const noexcept
168 {
169 return _buffer;
170 }
171
172 InvalidWindowWidth::InvalidWindowWidth(const std::string &argument)
173 {
174 _msg = "Error: The width you provided for the window is incorrect.\n";
175 _msg += "You provided: " + argument + "\n";
176 _msg += "When the following structure was expected:\n";
177 _msg += "A positive integer, for example: 800\n";
178 _buffer = _msg.c_str();
179 }
180
182
183 const char *InvalidWindowWidth::what() const noexcept
184 {
185 return _buffer;
186 }
187
188 InvalidWindowX::InvalidWindowX(const std::string &argument)
189 {
190 _msg = "Error: The X position you provided for the window is incorrect.\n";
191 _msg += "You provided: " + argument + "\n";
192 _msg += "When the following structure was expected:\n";
193 _msg += "An integer, for example: 10\n";
194 _buffer = _msg.c_str();
195 }
196
198
199 const char *InvalidWindowX::what() const noexcept
200 {
201 return _buffer;
202 }
203
204 InvalidWindowY::InvalidWindowY(const std::string &argument)
205 {
206 _msg = "Error: The Y position you provided for the window is incorrect.\n";
207 _msg += "You provided: " + argument + "\n";
208 _msg += "When the following structure was expected:\n";
209 _msg += "An integer, for example: 10\n";
210 _buffer = _msg.c_str();
211 }
212
214
215 const char *InvalidWindowY::what() const noexcept
216 {
217 return _buffer;
218 }
219
220 InvalidWindowHeight::InvalidWindowHeight(const std::string &argument)
221 {
222 _msg = "Error: The height you provided for the window is incorrect.\n";
223 _msg += "You provided: " + argument + "\n";
224 _msg += "When the following structure was expected:\n";
225 _msg += "A positive integer, for example: 600\n";
226 _buffer = _msg.c_str();
227 }
228
230
231 const char *InvalidWindowHeight::what() const noexcept
232 {
233 return _buffer;
234 }
235
237 {
238 _msg = "Error: The frame limit you provided for the refresh rate is incorrect.\n";
239 _msg += "It must be between 10 and 1000.\n";
240 _msg += "Your framelimit was " + std::to_string(frameLimit);
241 _buffer = _msg.c_str();
242 }
243
244 InvalidFrameLimit::InvalidFrameLimit(const std::string &frameLimit)
245 {
246 _msg = "Error: The frame limit you provided for the refresh rate is incorrect.\n";
247 _msg += "It must be between 10 and 1000.\n";
248 _msg += "Your framelimit was " + frameLimit;
249 _buffer = _msg.c_str();
250 }
251
253
254 const char *InvalidFrameLimit::what() const noexcept
255 {
256 return _buffer;
257 }
258
259 InvalidWidth::InvalidWidth(const std::string &width, const std::string &min, const std::string &max)
260 {
261 _msg = "Error: The width you provided is invalid.\n";
262 _msg += "The width was: '";
263 _msg += width;
264 _msg += "'.\n";
265 if (min.empty() == false) {
266 _msg += "The width was expected to be between ";
267 _msg += min;
268 if (max.empty() == false) {
269 _msg += " and ";
270 _msg += max;
271 }
272 _msg += ".";
273 }
274 _buffer = _msg.c_str();
275 };
276
278
279 const char *InvalidWidth::what() const noexcept
280 {
281 return _buffer;
282 }
283
284 InvalidHeight::InvalidHeight(const std::string &height, const std::string &min, const std::string &max)
285 {
286 _msg = "Error: The height you provided is invalid.\n";
287 _msg += "The height was: '";
288 _msg += height;
289 _msg += "'.\n";
290 if (min.empty() == false) {
291 _msg += "The height was expected to be between ";
292 _msg += min;
293 if (max.empty() == false) {
294 _msg += " and ";
295 _msg += max;
296 }
297 _msg += ".";
298 }
299 _buffer = _msg.c_str();
300 };
301
303
304 const char *InvalidHeight::what() const noexcept
305 {
306 return _buffer;
307 }
308
309
310 InvalidFontPath::InvalidFontPath(const std::string &path)
311 {
312 _msg = "Error: The path you provided for the font file is invalid.\n";
313 _msg += "The path was: '";
314 _msg += path;
315 _msg += "'.";
316 _buffer = _msg.c_str();
317 };
318
320
321 const char *InvalidFontPath::what() const noexcept
322 {
323 return _buffer;
324 }
325
326
327 InvalidShape::InvalidShape(const std::string &extraDetails)
328 {
329 _msg = "Error: The shape you have provided is invalid or ";
330 _msg += "has not been defined.";
331 if (extraDetails.empty() == false) {
332 _msg += "\n(" + extraDetails + ")";
333 }
334 _buffer = _msg.c_str();
335 };
336
338
339 const char *InvalidShape::what() const noexcept
340 {
341 return _buffer;
342 }
343
344 InvalidType::InvalidType(const std::string &extraDetails)
345 {
346 _msg = "Error: The content present in std::any does not match ";
347 _msg += "the provided type(or is just missing).";
348 if (extraDetails.empty() == false) {
349 _msg += "\n(" + extraDetails + ")";
350 }
351 _buffer = _msg.c_str();
352 };
353
355
356 const char *InvalidType::what() const noexcept
357 {
358 return _buffer;
359 }
360
361 InvalidIndex::InvalidIndex(const std::string &index, const std::string &min, const std::string &max)
362 {
363 _msg = "Error: The index you provided is invalid.\n";
364 if (!min.empty() && !max.empty()) {
365 _msg += "The index must in the range of '" + min + "' to '" + max + "'.\n";
366 } else if (!min.empty() && max.empty()) {
367 _msg += "The index must be greater than or equal to '" + min + "'.\n";
368 } else if (min.empty() && !max.empty()) {
369 _msg += "The index must be less than or equal to '" + max + "'.\n";
370 } else {
371 _msg += "The index must be a valid number.\n";
372 }
373 _msg += "The index was: '";
374 _msg += index;
375 _msg += "'.";
376 _buffer = _msg.c_str();
377 };
378
380
381 const char *InvalidIndex::what() const noexcept
382 {
383 return _buffer;
384 }
385
386 InvalidDuration::InvalidDuration(const std::string &duration, const std::string &min, const std::string &max)
387 {
388 _msg = "Error: The duration you provided is invalid.\n";
389 if (!min.empty() && !max.empty()) {
390 _msg += "The duration must in the range '" + min + "' to '" + max + "'.\n";
391 } else if (!min.empty() && max.empty()) {
392 _msg += "The duration must be greater than or equal to '" + min + "'.\n";
393 } else if (min.empty() && !max.empty()) {
394 _msg += "The duration must be less than or equal to '" + max + "'.\n";
395 } else {
396 _msg += "The duration must be a valid number.\n";
397 }
398 _msg += "The duration was: '";
399 _msg += duration;
400 _msg += "'.";
401 _buffer = _msg.c_str();
402 };
403
405
406 const char *InvalidDuration::what() const noexcept
407 {
408 return _buffer;
409 }
410
411 InvalidTOML::InvalidTOML(const std::string &path, const std::string &error)
412 {
413 _msg = "Error: The TOML file you provided is invalid\n";
414 _msg += "The filepath you provided is '" + path + "'.\n";
415 _msg += "The detailed error is '" + error + "'.";
416 _buffer = _msg.c_str();
417 };
418
420
421 const char *InvalidTOML::what() const noexcept
422 {
423 return _buffer;
424 }
425
426 InvalidConfigurationSpritesheetType::InvalidConfigurationSpritesheetType(const std::string &path, const std::string &key, const std::string &type, const std::string &expectedType)
427 {
428 _msg = "Error: The type '" + type + "' of the key '" + key + "' for the spritesheet in the configuration file '" + path + "' is incorrect.\n";
429 _msg += "The expected type is '" + expectedType + "'.";
430 _buffer = _msg.c_str();
431 };
432
434
435 const char *InvalidConfigurationSpritesheetType::what() const noexcept
436 {
437 return _buffer;
438 }
439
440 InvalidConfigurationMusicType::InvalidConfigurationMusicType(const std::string &path, const std::string &key, const std::string &type, const std::string &expectedType)
441 {
442 _msg = "Error: The type '" + type + "' of the key '" + key + "' for the music in the configuration file '" + path + "' is incorrect.\n";
443 _msg += "The expected type is '" + expectedType + "'.";
444 _buffer = _msg.c_str();
445 };
446
448
449 const char *InvalidConfigurationMusicType::what() const noexcept
450 {
451 return _buffer;
452 }
453
454 InvalidConfigurationFontType::InvalidConfigurationFontType(const std::string &path, const std::string &key, const std::string &type, const std::string &expectedType)
455 {
456 _msg = "Error: The type '" + type + "' of the key '" + key + "' for the font in the configuration file '" + path + "' is incorrect.\n";
457 _msg += "The expected type is '" + expectedType + "'.";
458 _buffer = _msg.c_str();
459 };
460
462
463 const char *InvalidConfigurationFontType::what() const noexcept
464 {
465 return _buffer;
466 }
467
468 InvalidTOMLKeyType::InvalidTOMLKeyType(const std::string &tomlPath, const std::string &tomlKey, const std::string &currentType, const std::string &expectedType)
469 {
470 _msg = "Error: The type of the key '";
471 _msg += tomlKey;
472 _msg += "' is '";
473 _msg += currentType;
474 _msg += "' but '";
475 _msg += expectedType;
476 _msg += "' type was expected for the configuration file '";
477 _msg += tomlPath;
478 _msg += "'.";
479 _buffer = _msg.c_str();
480 };
481
483
484 const char *InvalidTOMLKeyType::what() const noexcept
485 {
486 return _buffer;
487 }
488
489}
File in charge of informing the user that they have tried to access an invalid component.
~InvalidBackgroundConfiguration()
Destroy the Invalid Sprite Configuration object.
Definition Invalid.cpp:165
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:167
InvalidBackgroundConfiguration(const std::string &tomlPath="", const std::string &userConfiguration="", const std::string &backgroundName="", const std::string &exceptionDetail="")
Construct a new Invalid Sprite Configuration object.
Definition Invalid.cpp:147
InvalidConfigurationFontType(const std::string &path="", const std::string &key="", const std::string &type="", const std::string &expectedType="")
Construct a new Invalid Configuration Font Type object.
Definition Invalid.cpp:454
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:463
~InvalidConfigurationFontType()
Destroy the Invalid Configuration Font Type object.
Definition Invalid.cpp:461
~InvalidConfigurationMusicType()
Destroy the Invalid Configuration Music Type object.
Definition Invalid.cpp:447
InvalidConfigurationMusicType(const std::string &path="", const std::string &key="", const std::string &type="", const std::string &expectedType="")
Construct a new Invalid Configuration Music Type object.
Definition Invalid.cpp:440
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:449
~InvalidConfigurationSpritesheetType()
Destroy the Invalid Configuration Spritesheet Type object.
Definition Invalid.cpp:433
InvalidConfigurationSpritesheetType(const std::string &path="", const std::string &key="", const std::string &type="", const std::string &expectedType="")
Construct a new Invalid Configuration Spritesheet Type object.
Definition Invalid.cpp:426
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:435
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:406
~InvalidDuration()
Destroy the Invalid Duration object.
Definition Invalid.cpp:404
InvalidDuration(const std::string &duration="", const std::string &min="", const std::string &max="")
Construct a new Invalid Duration object.
Definition Invalid.cpp:386
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:66
InvalidFontConfiguration(const std::string &userConfiguration="", const std::string &fontName="")
Construct a new Invalid Font Configuration object.
Definition Invalid.cpp:49
~InvalidFontConfiguration()
Destroy the Invalid Font Configuration object.
Definition Invalid.cpp:64
~InvalidFontPath()
Destroy the Invalid Font Path object.
Definition Invalid.cpp:319
InvalidFontPath(const std::string &path="")
Construct a new Invalid Font Path object.
Definition Invalid.cpp:310
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:321
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:254
~InvalidFrameLimit()
Destroy the Invalid Frame Limit object.
Definition Invalid.cpp:252
InvalidFrameLimit(unsigned int frameLimit)
Construct a new Invalid Frame Limit object.
Definition Invalid.cpp:236
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:304
~InvalidHeight()
Destroy the Invalid Height object.
Definition Invalid.cpp:302
InvalidHeight(const std::string &height="", const std::string &min="", const std::string &max="")
Construct a new Invalid Height object.
Definition Invalid.cpp:284
~InvalidIconConfiguration()
Destroy the Invalid Sprite Configuration object.
Definition Invalid.cpp:140
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:142
InvalidIconConfiguration(const std::string &tomlPath="", const std::string &userConfiguration="", const std::string &iconName="", const std::string &exceptionDetail="")
Construct a new Invalid Sprite Configuration object.
Definition Invalid.cpp:121
InvalidIndex(const std::string &index="", const std::string &min="", const std::string &max="")
Construct a new Invalid Index object.
Definition Invalid.cpp:361
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:381
~InvalidIndex()
Destroy the Invalid Index object.
Definition Invalid.cpp:379
~InvalidIp()
Destroy the Invalid Ip object.
Definition Invalid.cpp:27
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:29
InvalidIp(const std::string &error="")
Construct a new Invalid Ip object.
Definition Invalid.cpp:19
InvalidMusicConfiguration(const std::string &userConfiguration="", const std::string &musicName="")
Construct a new Invalid Music Configuration object.
Definition Invalid.cpp:71
~InvalidMusicConfiguration()
Destroy the Invalid Music Configuration object.
Definition Invalid.cpp:85
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:87
~InvalidPort()
Destroy the Invalid Port object.
Definition Invalid.cpp:42
InvalidPort(const std::string &error="")
Construct a new Invalid Port object.
Definition Invalid.cpp:34
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:44
~InvalidShape()
Destroy the Invalid Shape object.
Definition Invalid.cpp:337
InvalidShape(const std::string &extraDetails="")
Construct a new Invalid Shape object.
Definition Invalid.cpp:327
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:339
~InvalidSpriteConfiguration()
Destroy the Invalid Sprite Configuration object.
Definition Invalid.cpp:114
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:116
InvalidSpriteConfiguration(const std::string &userConfiguration="", const std::string &spriteName="", const std::string &exceptionDetail="")
Construct a new Invalid Sprite Configuration object.
Definition Invalid.cpp:92
InvalidTOMLKeyType(const std::string &tomlPath="", const std::string &tomlKey="", const std::string &currentType="", const std::string &expectedType="")
Construct a new Invalid toml Key Type object.
Definition Invalid.cpp:468
~InvalidTOMLKeyType()
Destroy the Invalid toml Key Type object.
Definition Invalid.cpp:482
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:484
InvalidTOML(const std::string &path="", const std::string &error="")
Construct a new Invalid toml object.
Definition Invalid.cpp:411
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:421
~InvalidTOML()
Destroy the Invalid toml object.
Definition Invalid.cpp:419
InvalidType(const std::string &extraDetails="")
Construct a new Invalid Type object.
Definition Invalid.cpp:344
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:356
~InvalidType()
Destroy the Invalid Type object.
Definition Invalid.cpp:354
InvalidWidth(const std::string &width="", const std::string &min="", const std::string &max="")
Construct a new Invalid Width object.
Definition Invalid.cpp:259
~InvalidWidth()
Destroy the Invalid Width object.
Definition Invalid.cpp:277
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:279
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:231
InvalidWindowHeight(const std::string &argument="")
Construct a new Invalid Window Height object.
Definition Invalid.cpp:220
~InvalidWindowHeight()
Destroy the Invalid Window Height object.
Definition Invalid.cpp:229
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:183
InvalidWindowWidth(const std::string &argument="")
Construct a new Invalid Window Width object.
Definition Invalid.cpp:172
~InvalidWindowWidth()
Destroy the Invalid Window Width object.
Definition Invalid.cpp:181
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:199
InvalidWindowX(const std::string &argument="")
Construct a new Invalid Window X position object.
Definition Invalid.cpp:188
~InvalidWindowX()
Destroy the Invalid Window X position object.
Definition Invalid.cpp:197
const char * what() const noexcept
Retrieves the error message.
Definition Invalid.cpp:215
~InvalidWindowY()
Destroy the Invalid Window Width object.
Definition Invalid.cpp:213
InvalidWindowY(const std::string &argument="")
Construct a new Invalid Window Width object.
Definition Invalid.cpp:204