[
https://issues.apache.org/jira/browse/OODT-534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luca Cinquini resolved OODT-534.
--------------------------------
Resolution: Fixed
Fixed: now if the product does not exist, the error message returned is:
Exception in thread "main"
org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException:
java.lang.Exception:
org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Product: [xxx]
NOT found in the catalog!
While if multiple products are found (in case ids are not unique?), the error
message is the same as before.
> Better error message when product is not found in catalog
> ---------------------------------------------------------
>
> Key: OODT-534
> URL: https://issues.apache.org/jira/browse/OODT-534
> Project: OODT
> Issue Type: Improvement
> Components: file manager
> Affects Versions: 0.4
> Reporter: Luca Cinquini
> Assignee: Luca Cinquini
> Fix For: 0.5
>
>
> Right now, if a client queries for a non-existing product by identifier, the
> LuceneCatalog implementation returns this error message:
> Exception in thread "main"
> org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException:
> java.lang.Exception:
> org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Product:
> [xxx] is not unique in the catalog!
> A better error message would indicate that the product does not exist.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira