Enable to set promise result from current exception