Exception.hpp 785 B

1234567891011121314151617181920212223242526272829303132
  1. ///
  2. /// \file Callable/Exception.hpp
  3. ///
  4. /// Exceptions thrown by the Callable 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 CallableArgumentError is thrown when invalid arguments are used.
  16. */
  17. POTHOS_DECLARE_EXCEPTION(POTHOS_API, CallableArgumentError, InvalidArgumentException)
  18. /*!
  19. * A CallableReturnError is thrown when return can't be converted.
  20. */
  21. POTHOS_DECLARE_EXCEPTION(POTHOS_API, CallableReturnError, NotImplementedException)
  22. /*!
  23. * A CallableNullError is thrown when a call is made on a null Callable.
  24. */
  25. POTHOS_DECLARE_EXCEPTION(POTHOS_API, CallableNullError, NullValueException)
  26. } //namespace Pothos