Convert exceptions to results