Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Converter<ResponseBody, Error> errorConverter =
ServiceGenerator.retrofit.responseBodyConverter(Error.class, new Annotation[0]);
try {
Error error = errorConverter.convert(response.errorBody());
if (error.getCode().equals(ERROR_STATUS)) {
if (!inputUsername.requestFocus()) {
Toast.makeText(SignUpActivty.this, getString(R.string.sign_up_username_exists), Toast.LENGTH_LONG).show();
} catch (IOException e) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.