| 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_NOT_FOUND_H_INCLUDED
|
| 8 | #define APP_WIDGET_NOT_FOUND_H_INCLUDED
|
| 9 | #pragma once
|
| 10 |
|
| 11 | #include <string>
|
| 12 | #include <stdexcept>
|
| 13 |
|
| 14 | namespace app {
|
| 15 |
|
| 16 | class WidgetNotFound : public std::runtime_error {
|
| 17 | public:
|
| 18 | WidgetNotFound(const std::string& widgetId)
|
| 19 | : std::runtime_error("A data file is corrupted.\nPlease reinstall the program\n\n"
|
| 20 | "Details: Widget not found: " + widgetId) { }
|
| 21 | };
|
| 22 |
|
| 23 | } // namespace app
|
| 24 |
|
| 25 | #endif
|
| 26 | |