Being able to get the right error/exception?