Fixed namespace issue for exception