What the fragment

Introduction

[code language=”java”]

protected E actualErrorParse(NetworkResponse networkResponse) {
    if (networkResponse != null && networkResponse.data != null) {
        try {
            String json = new String(networkResponse.data, PROTOCOL_CHARSET);
            Timber.d(json);
            return mapper.readValue(json, errorType);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    return null;
}

[/code]

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *