[hibernate-dev] Introducing specialized subtypes of SearchException

Hardy Ferentschik hardy at hibernate.org
Wed Jun 13 15:05:26 EDT 2012


On 13 Jun 2012, at 20:24, Steve Ebersole <steve at hibernate.org> wrote:

> Well I think a great rule is the test suite.  We actually have tests in 
> ORM that inspect the exception message string to perform assertions.  
> If you need the distinction for the test suite, its a good bet users 
> might too ;)

Sounds like a good rule.

> On Wed 13 Jun 2012 12:02:45 PM CDT, Emmanuel Bernard wrote:
>> Year, it was never a rule in search. It's just that we never had a need. At least I never had a need. I am against artificial exception hierarchies for the sake of separation but if there is a use case, let's go :)
>> 
>> On 13 juin 2012, at 15:26, Steve Ebersole wrote:
>> 
>>> I think thats a bad rule in general ;)
>>> 
>>> Lack of specific exception types in ORM has been an issue quite a few
>>> times.
>>> 
>>> On Wed 13 Jun 2012 08:15:48 AM CDT, Sanne Grinovero wrote:
>>>> Ok, only for this specific case I created:
>>>> https://hibernate.onjira.com/browse/HSEARCH-1161
>>>> 
>>>> So we won't have a single exception any more, I guess more will come
>>>> as needed now that the "single type exception" rule is broken.
>>>> 
>>>> Sanne
>>>> 
>>>> On 13 June 2012 13:57, Hardy Ferentschik<hardy at hibernate.org>   wrote:
>>>>> +1 and as Emmanuel is saying we should take it as it comes
>>>>> 
>>>>> 
>>>>> On Jun 13, 2012, at 2:49 PM, Emmanuel Bernard wrote:
>>>>> 
>>>>>> +1 on a case by case basis. That can definitely help here.
>>>>>> 
>>>>>> On 13 juin 2012, at 14:05, Sanne Grinovero wrote:
>>>>>> 
>>>>>>> I'm wondering if we should specialize SearchException in some cases to
>>>>>>> make it easier for business logic to react correctly, like in the case
>>>>>>> of:
>>>>>>> 
>>>>>>> https://bugzilla.redhat.com/show_bug.cgi?id=831569#c2
>>>>>>> 
>>>>>>> Sanne
>>>>>>> _______________________________________________
>>>>>>> hibernate-dev mailing list
>>>>>>> hibernate-dev at lists.jboss.org
>>>>>>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>>>> 
>>>> _______________________________________________
>>>> hibernate-dev mailing list
>>>> hibernate-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>> 
>>> --
>>> steve at hibernate.org
>>> http://hibernate.org
>>> _______________________________________________
>>> hibernate-dev mailing list
>>> hibernate-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>> 
> 
> --
> steve at hibernate.org
> http://hibernate.org
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev



More information about the hibernate-dev mailing list