The Battle for Wesnoth  1.15.1+dev
layout_exception.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 2018 by Mark de Wever <koraq@xs4all.nl>
3  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 /**
16  * @file
17  * Defines the exception classes for the layout algorithm.
18  */
19 
20 #pragma once
21 
22 #include <exception>
23 
24 namespace gui2
25 {
26 
27 /**
28  * Exception thrown when the width has been modified during resizing.
29  *
30  * See layout_algorithm for more information.
31  */
32 struct layout_exception_width_modified : public std::exception
33 {
34 };
35 
36 /** Basic exception when the layout doesn't fit. */
37 struct layout_exception_resize_failed : public std::exception
38 {
39 };
40 
41 /**
42  * Exception thrown when the width resizing has failed.
43  *
44  * See layout_algorithm for more information.
45  */
48 {
49 };
50 
51 /**
52  * Exception thrown when the height resizing has failed.
53  *
54  * See layout_algorithm for more information.
55  */
58 {
59 };
60 
61 } // namespace gui2
Exception thrown when the height resizing has failed.
Generic file dialog.
Definition: field-fwd.hpp:22
Exception thrown when the width has been modified during resizing.
Exception thrown when the width resizing has failed.
Basic exception when the layout doesn&#39;t fit.