/*ckwg +5
 * Copyright 2012 by Kitware, Inc. All Rights Reserved. Please refer to
 * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
 * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
 */

#ifndef VISTK_PYTHON_HELPERS_EXCEPTIONS_H
#define VISTK_PYTHON_HELPERS_EXCEPTIONS_H

#define HANDLE_PYTHON_EXCEPTION(call)       \
  try                                       \
  {                                         \
    call;                                   \
  }                                         \
  catch (boost::python::error_already_set&) \
  {                                         \
    PyErr_Print();                          \
                                            \
    throw;                                  \
  }

#endif // VISTK_PYTHON_HELPERS_EXCEPTIONS_H

/*ckwg +5
 * Copyright 2012 by Kitware, Inc. All Rights Reserved. Please refer to
 * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
 * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
 */

#ifndef VISTK_PYTHON_HELPERS_EXCEPTIONS_H
#define VISTK_PYTHON_HELPERS_EXCEPTIONS_H

/// \todo More useful output?

#define HANDLE_PYTHON_EXCEPTION(call)       \
  try                                       \
  {                                         \
    call;                                   \
  }                                         \
  catch (boost::python::error_already_set&) \
  {                                         \
    PyErr_Print();                          \
                                            \
    throw;                                  \
  }

#endif // VISTK_PYTHON_HELPERS_EXCEPTIONS_H

Add a todo for more useful Python exception output
Add a todo for more useful Python exception output
