Modified exception's behaviour