Exception.hpp 737 B

1234567891011121314151617181920212223242526272829303132
  1. ///
  2. /// \file Plugin/Exception.hpp
  3. ///
  4. /// Exceptions thrown by the Plugin methods.
  5. ///
  6. /// \copyright
  7. /// Copyright (c) 2013-2014 Josh Blum
  8. /// SPDX-License-Identifier: BSL-1.0
  9. ///
  10. #pragma once
  11. #include <Pothos/Config.hpp>
  12. #include <Pothos/Exception.hpp>
  13. namespace Pothos {
  14. /*!
  15. * A PluginPathError is thrown when bad plugin paths are used.
  16. */
  17. POTHOS_DECLARE_EXCEPTION(POTHOS_API, PluginPathError, RuntimeException)
  18. /*!
  19. * A PluginRegistryError is thrown when bad registry paths are used.
  20. */
  21. POTHOS_DECLARE_EXCEPTION(POTHOS_API, PluginRegistryError, RuntimeException)
  22. /*!
  23. * A PluginModuleError is thrown when module loads fail.
  24. */
  25. POTHOS_DECLARE_EXCEPTION(POTHOS_API, PluginModuleError, RuntimeException)
  26. } //namespace Pothos