Write `Ten.Promise.wrapError` method
Write `Ten.Promise.as` method