Fix namespace issue with Exception