On Nov 24, 2010, at 7:31 AM, Adam Walczak wrote:
> 2010/11/23 Paul Sandoz <Paul.Sandoz_at_oracle.com>:
>> This is a good idea and i think would make, at least initially,
>> most sense
>> as a separate module. We could place such a module in the
>> experimental area
>> until we are happy with it.
>
> Ok. I'll do that and raport back when I'm done.
OK.
>
>> I prefer Alexandru's approach of using an ErrorInfo class for the
>> entity
>> rather than a Throwable.
>
> Personally I feel this to be a little limited. A assume the ErrorInfo
> class is filled with some generic fields.
I dunno.
> What is I have somewhere an exception like:
>
> class CsvImportException extends Exception {
>
> ...
>
> public int getLineNumber() {
> ...
> }
> }
>
> And I need the line number attribute to do proper user interaction ?
>
How do you propose to serialize out the Throwable as XML or JSON?
Paul.