Use .class_ instead of __javaclass__ and call getFields(). Exception handler use isinstance() to check for Exception.