Creates a future completed with the given exception.
an error
the future completed with the given exception