userMessageForExtractionError static method
Convert known extraction failures into user-facing copy.
Implementation
static String userMessageForExtractionError(Object error) {
if (isOcrRequiredPdfExtractionError(error)) {
return scannedPdfOcrRequiredMessage;
}
return error.toString();
}