Simplified boundary exception

pull/199/head
M66B 3 years ago
parent 877d1f1764
commit 02ccc2f8b7

@ -493,12 +493,14 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
return search(false, browsable.keywords, protocol, state); return search(false, browsable.keywords, protocol, state);
} }
} catch (Throwable ex) { } catch (Throwable ex) {
String msg; ProtocolException pex;
if (ex instanceof ProtocolException) if (ex instanceof ProtocolException)
msg = context.getString(R.string.title_service_auth, account.host + ": " + ex.getMessage()); pex = new ProtocolException(
context.getString(R.string.title_service_auth,
account.host + ": " + ex.getMessage()),
ex.getCause());
else else
msg = "Search " + account.host; pex = new ProtocolException("Search " + account.host, ex);
ProtocolException pex = new ProtocolException(msg, ex);
Log.e(pex); Log.e(pex);
throw pex; throw pex;
} }

Loading…
Cancel
Save