Fledge
An open source edge computing platform for industrial users
plugin_exception.h
1 /*
2  * Fledge services common.
3  *
4  * Copyright (c) 2018 OSisoft, LLC
5  *
6  * Released under the Apache 2.0 Licence
7  *
8  * Author: Massimiliano Pinto
9  */
10 
15 class PluginNotImplementedException : public std::exception {
16 public:
17  // Construct with a default error message:
18  PluginNotImplementedException(const char * error = "Functionality not implemented yet!")
19  {
20  errorMessage = error;
21  }
22 
23  // Compatibility with std::exception.
24  const char * what() const noexcept
25  {
26  return errorMessage.c_str();
27  }
28 
29 private:
30  std::string errorMessage;
31 };
Implementation of PluginNotImplementedException.
Definition: plugin_exception.h:15