Trimmed incorrect exception handler