1 | // Aseprite
|
2 | // Copyright (C) 2001-2015 David Capello
|
3 | //
|
4 | // This program is distributed under the terms of
|
5 | // the End-User License Agreement for Aseprite.
|
6 |
|
7 | #ifndef APP_WIDGET_TYPE_MISMATCH_H_INCLUDED
|
8 | #define APP_WIDGET_TYPE_MISMATCH_H_INCLUDED
|
9 | #pragma once
|
10 |
|
11 | #include <string>
|
12 | #include <stdexcept>
|
13 |
|
14 | namespace app {
|
15 |
|
16 | class WidgetTypeMismatch : public std::runtime_error {
|
17 | public:
|
18 | WidgetTypeMismatch(const std::string& widgetId)
|
19 | : std::runtime_error("Widget " + widgetId +
|
20 | " of the expected type.\nPlease reinstall the program.\n\n" ) { }
|
21 | };
|
22 |
|
23 | } // namespace app
|
24 |
|
25 | #endif
|
26 | |