Converting handling-errors-in-google-app-engineand.