Logic for making friendly exception names