restore(plainError, payload) {
		let err = this.restoreCustomError(plainError, payload);
		if (!err) {
			err = recreateError(plainError);
		}
		if (!err) {
			err = this._createDefaultError(plainError);
		}
		this._restoreExternalFields(plainError, err, payload);
		this._restoreStack(plainError, err);

		return err;
	}
Restores an Error object

@param {Object} plainError
@param {Object} payload
@return {Error}

@memberof Regenerator