Handle CursorLoader exceptions
问题 I have a Fragment implementing LoaderManager and using CursorLoader (nothing fancy). I want to catch exceptions thrown during the query but I don't see how!!! Any help? Thx. 回答1: You would need to derive from CursorLoader to do it. Something like this: class MyCursorLoader extends CursorLoader { public MyCursorLoader(Context context) { super(context) } public CursorLoader(Context context, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { super(context