You're right. I guess this is better to fetch the username directly from exception