Fix namespace of exception

Exception class is in global namespace backslash needed or exception is not thrown correctly.