MatN work for versatile appimage creation for all types of os
[goodguy/cinelerra.git] / cinelerra-5.1 / tools / makeappimagetool / includes / exceptions.h
1 // system includes
2 #include <exception>
3
4 #pragma once
5
6 namespace linuxdeploy {
7     namespace plugin {
8         /*
9          * Exception class indicating that the plugin doesn't implement the right API level for the selected class
10          */
11         class PluginError : public std::runtime_error {
12             public:
13                 explicit PluginError(const std::string& msg) : std::runtime_error(msg) {}
14         };
15
16         /*
17          * Exception class indicating that the plugin doesn't implement the right API level for the selected class
18          */
19         class WrongApiLevelError : public PluginError {
20             public:
21                 explicit WrongApiLevelError(const std::string& msg) : PluginError(msg) {}
22         };
23     }
24 }