PromiseRejectedException CLASS

The default exception to return or throw upon demand of a rejected promised. This class is mostly used by the system to facilitate faulting process, but a user's promise callback usually throws more specific exceptions.

Parent Class

All Members


TypeNameSignature
constructorPromiseRejectedExceptionpublic PromiseRejectedException(string)

Constructors


public PromiseRejectedException(string msg)

Create a standard PromiseRejectedException instance. The users, however, usually just fault the promise by throwing a more specific exception.

Parameters

  • msg A message to describe the reason for rejection.