fixed exceptions

Namespace caused a fatal error while throwing Exception