Adding counter to help with the tests
Replacing a Java exception with a message for now

Also, adding new exceptions to the name resolver