Details
-
Type:
Bug
-
Status: In Progress
-
Priority:
Trivial
-
Resolution: Unresolved
-
Affects Version/s: 2.11.3.2, 2.11.3.3, 2.11.4.0
-
Component/s: Command Line Interface, gui
-
Labels:None
Description
This happens particularly when opening a file from command line.
FileParse.parse(...) turns all exceptions, including HTTP fetching errors, into an IOException, which is then interpreted by IdentifyFile.identify(String, DataSourceType) to mean and throw a FileFormatException.
This results in HTTP errors that throw (e.g.) a FileNotFoundException to generate an error message saying the URL format isn't recognised, when in fact the URL was incorrect or the server gave an error.
FileParse.parse(...) turns all exceptions, including HTTP fetching errors, into an IOException, which is then interpreted by IdentifyFile.identify(String, DataSourceType) to mean and throw a FileFormatException.
This results in HTTP errors that throw (e.g.) a FileNotFoundException to generate an error message saying the URL format isn't recognised, when in fact the URL was incorrect or the server gave an error.