暫定)エラーハンドリング

This commit is contained in:
r-ca 2024-01-09 14:09:27 +09:00
parent 69b60944b4
commit 730640425f
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -169,7 +169,12 @@ public class ScannerDataManagerStubFragment extends Fragment {
} }
this.documentProcessor = documentProcessorFactory.create(this.documentDetail); this.documentProcessor = documentProcessorFactory.create(this.documentDetail);
Toast.makeText(getActivity(), "documentProcessor created", Toast.LENGTH_LONG).show(); Toast.makeText(getActivity(), "documentProcessor created", Toast.LENGTH_LONG).show();
this.documentProcessor.init(); try {
this.documentProcessor.init();
} catch (Exception e) {
Toast.makeText(getActivity(), "Error occurred while initializing documentProcessor", Toast.LENGTH_LONG).show();
Log.e("ScannerDataManagerStubFragment", "Error occurred while initializing documentProcessor", e);
}
Toast.makeText(getActivity(), "documentProcessor initialized", Toast.LENGTH_LONG).show(); Toast.makeText(getActivity(), "documentProcessor initialized", Toast.LENGTH_LONG).show();
}); });