fixed call to ErrorException namespace

I was unable to use the class without this small change. After the fix, all the requests works ok.