[hibernate-issues] [Hibernate-JIRA] Closed: (HSEARCH-384) improve error messages for loading plugins and add consistency to the performed checks

Sanne Grinovero (JIRA) noreply at atlassian.com
Wed Jul 1 18:40:15 EDT 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanne Grinovero closed HSEARCH-384.
-----------------------------------

    Resolution: Fixed

> improve error messages for loading plugins and add consistency to the performed checks
> --------------------------------------------------------------------------------------
>
>                 Key: HSEARCH-384
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-384
>             Project: Hibernate Search
>          Issue Type: Improvement
>            Reporter: Sanne Grinovero
>            Assignee: Sanne Grinovero
>             Fix For: 3.2.0
>
>
> the code of Hibernate Search is very extensible, as nearly all
> internal modules are "overridable" by user provided implementation;
> this external classes are loaded by defining a short name (in case of
> built-in extensions) or fully qualified names to load
> whatever is on the classpath to replace internals.
> For some issues I'll soon have to be copy-pasting the usual exception
> handling code around, again..
> A quick regex count on the code base reveals that this same code is
> duplicated in other 25 places, mostly correct but sometimes
> forgetting to handle one or two cases (for example ClassCastException
> is not handled often)
> I am building a util class to get some consistency, and plan to unit
> test this extensively to make sure it throws understandable exceptions
> for the most common mistakes (hey, I need a public no-args
> constructor! / not implementing the X interface! / ...)
> -> DRY, improve error messages.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list