On 8/3/11 17:48 , Nicolas Delsaux wrote:
On Wed, Aug 3, 2011 at 11:26 AM, Rickard Öberg<[email protected]> wrote:
None of the methods I mentioned return proxies actually. Do you have any
examples of what you mean?
No, I didn't ask for what a NullObject is. I know that. You asserted
that "From what I understand, most of what Qi4j uses are interfaces. As
a consequences, the methods you mention returns proxies over those
interfaces." and as I said, no that's not the case. But if I missed
something, what methods in the Qi4j API/SPI are you saying returns proxies?
Well, not really, and I do understand my explications are rather confuse.
Anyway, I've always found exceptions to be very poor. And I do like
the exceptions to provide me two things :
1 - An insame amount of details about the failure (in the particular
null case, what precisely is null, and how can I make sure it is not
null in later cases)
IllegalArgumentException/IllegalStateException provides that if the
message is just clear enough.
2 - An easy track for fixing error (in that particular case, a
unnulifyWith(Object newValue) method in exception that would put a
default value in object would be incredibly great).
But I do agree with you, all that is incredibly complicated (and
borderline crazy in most cases).
mmm....
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev