better error handling  flex client generator