Using namespace and differentiation of exceptions