onParseError

public abstract T onParseError(String error)

Produces the value this parser returns in place of a response object when the reply cannot be parsed, for example an empty or unrecognizable JSON body.

Return

the fallback value for a failed parse

Parameters

error

a description of what went wrong