catch illegal argument exception in find method