Share via


bad_target Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

This class describes an exception thrown when a messaging block is given a pointer to a target which is invalid for the operation being performed.

Syntax

class bad_target : public std::exception;

Members

Public Constructors

Name Description
bad_target::bad_target Constructor Overloaded. Constructs a bad_target object.

Remarks

This exception is typically thrown for reasons such as a target attempting to consume a message which is reserved for a different target or releasing a reservation that it does not hold.

Inheritance Hierarchy

exception

bad_target

Requirements

Header: concrt.h

Namespace: concurrency

bad_target::bad_target Constructor

Constructs a bad_target object.

explicit _CRTIMP bad_target(_In_z_ const char* _Message) throw();

bad_target() throw();

Parameters

_Message
A descriptive message of the error.

See Also

concurrency Namespace
Asynchronous Message Blocks