public class BlobInput {\r
private final Logger logger = LoggerFactory.getLogger(BlobInput.class);\r
private final static String FILE_ACCESS_ERROR = "The following file is either missing or cannot be read: ";\r
+ private final static String URL_DOWNLOAD_FAILED = "Could not download file from the following URL: ";\r
\r
private String blobCsid = null;\r
private File blobFile = null;\r
int status = fetchedFile.getStatus();\r
if (status == Download.COMPLETE) {\r
theBlobFile = fetchedFile.getFile();\r
- } //FIXME: REM - We should throw an exception here if we couldn't download the file.\r
+ } else {\r
+ String msg = URL_DOWNLOAD_FAILED + theBlobUri;\r
+ logger.error(msg);\r
+ throw new DocumentException(msg);\r
+ }\r
} else if (blobUrl.getProtocol().equalsIgnoreCase("file")) {\r
theBlobFile = FileUtils.toFile(blobUrl);\r
if (theBlobFile.exists() == false || theBlobFile.canRead() == false) {\r