Promise.reject
void reject(string errorMsg) @trustedComplete the promise with an error.
All registered onError callbacks will be invoked with the message. Subsequent calls to resolve or reject are ignored.
Parameters
errorMsg | The error message describing what went wrong. |