Compartir a través de


task_completion_event::set_exception Method (C++ REST SDK)

Propagates an exception to all tasks associated with this event.

template<
   typename _E
>
__declspec(
   noinline
) bool set_exception(_E _Except) const;

__declspec(
   noinline
) bool set_exception(std::exception_ptr _ExceptionPtr) const ;

Parameters

  • _E

  • _Except

  • _ExceptionPtr

Requirements

Header: pplxtasks.h

Namespace: pplx

See Also

Reference

task_completion_event Class (C++ REST SDK)