<PackageReference Include="Microsoft.Bcl" Version="1.1.7" />

System.Threading.Tasks.TaskSchedulerException

Represents an exception used to communicate an invalid operation by a TaskScheduler.

Initializes a new instance of the TaskSchedulerException class.

public TaskSchedulerException(string message)

Initializes a new instance of the TaskSchedulerException class with a specified error message.

public TaskSchedulerException(Exception innerException)

Initializes a new instance of the TaskSchedulerException class using the default error message and a reference to the inner exception that is the cause of this exception.

public TaskSchedulerException(string message, Exception innerException)

Initializes a new instance of the TaskSchedulerException class with a specified error message and a reference to the inner exception that is the cause of this exception.