implement the rejected state of the promise