#include <boost/lexical_cast.hpp>
#include <common/tweener.h>
+#include <common/except.h>
namespace caspar { namespace core {
auto self = shared_from_this();
if (dependency->depends_on(self))
- throw std::runtime_error("Can't have circular dependencies between bindings");
+ CASPAR_THROW_EXCEPTION(invalid_argument() << msg_info("Can't have circular dependencies between bindings"));
dependency->on_change(self, [=] { evaluate(); });
dependencies_.push_back(dependency);
void set(T value)
{
if (bound())
- {
- throw std::runtime_error("Bound value cannot be set");
- }
+ CASPAR_THROW_EXCEPTION(caspar_exception() << msg_info("Bound value cannot be set"));
if (value == value_)
return;